Skip to content

Commit

Permalink
check pipeline 022
Browse files Browse the repository at this point in the history
  • Loading branch information
tinhutins committed Jan 24, 2024
1 parent 44feae4 commit 4f19a7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
kustomize edit set image ${{ env.REPOSITORY_PATH }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}
git commit -am "Publish image ${{ env.IMAGE_NAME }}:${{ env.TAG }}"
git push
git_status=$(git status --porcelain)
if [[ -z "$git_status" || "$git_status" == "nothing to commit, working tree clean" ]]; then
git_status=$(git status)
if grep -q "nothing to commit, working tree clean" "$git_status"; then
echo "Working tree is clean. No changes to commit."
exit 0

0 comments on commit 4f19a7a

Please sign in to comment.