Skip to content

Commit

Permalink
Update update.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
lxRbckl authored Jan 23, 2024
1 parent afe1b35 commit 56a1d1b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ jobs:
DOCKERPROJECT: "project-ja"

steps:
- name: Evaluate Commit Message
run: |
commitMessage="${{ github.event.head_commit.message }}";
if [ "$commitMessage" != "Update" ]; then
echo "Cancelling Workflow.";
exit 1;
fi
- name: Checkout Repository
uses: actions/checkout@v2

Expand All @@ -29,4 +41,4 @@ jobs:
docker build -t ${{ env.DOCKERPROJECT }} .
docker tag ${{ env.DOCKERPROJECT }} ${{ secrets.DOCKERHUBUSERNAME }}/${{ env.DOCKERPROJECT }}:latest
docker push ${{ secrets.DOCKERHUBUSERNAME }}/${{ env.DOCKERPROJECT }}:latest
docker push ${{ secrets.DOCKERHUBUSERNAME }}/${{ env.DOCKERPROJECT }}:latest

0 comments on commit 56a1d1b

Please sign in to comment.