change workflow so if brew_list not changed it exits, successfully

This commit is contained in:
Jeremie Fraeys 2024-05-29 19:26:36 -04:00
parent bc1172e33c
commit 7050d3bf29

View file

@ -19,11 +19,14 @@ jobs:
- name: Update update_brew_lists
run: |
# cp update_brew_lists .
# Perform the necessary update steps
# For example, cp update_brew_lists .
git add update_brew_lists
git commit -m "Update update_brew_lists"
git push
if ! git diff-index --quiet HEAD --; then
git commit -m "Update update_brew_lists"
git push
else
echo "No changes to update_brew_lists, skipping commit and push."
- name: Update complete
run: echo "update_brew_lists updated successfully."
run: echo "update_brew_lists update process completed successfully."