change workflow so if brew_list not changed it exits, successfully
This commit is contained in:
parent
bc1172e33c
commit
7050d3bf29
1 changed files with 8 additions and 5 deletions
13
.github/workflows/deploy_update_brew_lists.yml
vendored
13
.github/workflows/deploy_update_brew_lists.yml
vendored
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Reference in a new issue