diff --git a/.github/workflows/appversion.yaml b/.github/workflows/appversion.yaml index bce669e..2a7f81c 100644 --- a/.github/workflows/appversion.yaml +++ b/.github/workflows/appversion.yaml @@ -45,7 +45,11 @@ jobs: git config user.name "$GITHUB_ACTOR" git config user.email "$GITHUB_ACTOR@users.noreply.github.com" git add charts/kexa-chart/Chart.yaml - git commit -m "chore(release): update Chart.yaml appversion" - git push origin dev + if [ -n "$(git status --porcelain)" ]; then + git commit -m "chore(release): update Chart.yaml appversion" + git push origin dev + else + echo "No changes to commit" + fi env: GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} diff --git a/.github/workflows/dashboards.yaml b/.github/workflows/dashboards.yaml index 1bd32c5..14c8516 100644 --- a/.github/workflows/dashboards.yaml +++ b/.github/workflows/dashboards.yaml @@ -57,8 +57,12 @@ jobs: - name: Commit changes run: | git add charts/kexa-chart/files/dashboards/ - git commit -m "Get new dashboards" - git push + if [ -n "$(git status --porcelain)" ]; then + git commit -m "Get new dashboards" + git push + else + echo "No changes to commit" + fi env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} working-directory: current-repo \ No newline at end of file