Skip to content

Commit

Permalink
fix: all flow no commit no fail
Browse files Browse the repository at this point in the history
  • Loading branch information
aeppling committed Sep 17, 2024
1 parent 676259e commit 9ba819b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/appversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ jobs:
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
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 }}
8 changes: 6 additions & 2 deletions .github/workflows/dashboards.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9ba819b

Please sign in to comment.