From 7050d3bf290aa737457482f74e899ff73147c73a Mon Sep 17 00:00:00 2001 From: Jeremie Fraeys Date: Wed, 29 May 2024 19:26:36 -0400 Subject: [PATCH] change workflow so if brew_list not changed it exits, successfully --- .github/workflows/deploy_update_brew_lists.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy_update_brew_lists.yml b/.github/workflows/deploy_update_brew_lists.yml index 0085903..e2f0011 100755 --- a/.github/workflows/deploy_update_brew_lists.yml +++ b/.github/workflows/deploy_update_brew_lists.yml @@ -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."