Skip to content

Commit

Permalink
give some feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmathis committed Sep 18, 2024
1 parent 4780550 commit bee7020
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/check-enums.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,14 @@ jobs:

- name: Commit & push enums changes
shell: bash -l {0}
if: ${{ steps.enums.outputs.count > 0 || steps.enums.outputs.files > 0 }}
run: |
set -e
git config user.name github-actions
git config user.email [email protected]
git add emmet-core/emmet/core/*/calc_types/enums.py
git commit -m "[automated commit] update calc type enums"
git push
if [[ "${{ steps.enums.outputs.count }}" > 0 || "${{ steps.enums.outputs.files }}" > 0 ]]; then
git config user.name github-actions
git config user.email [email protected]
git add emmet-core/emmet/core/*/calc_types/enums.py
git commit --allow-empty -m "[automated commit] update calc type enums"
git push
else
echo "No changes detected in enum files."
fi

0 comments on commit bee7020

Please sign in to comment.