File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414jobs :
1515 update-formula :
1616 runs-on : ubuntu-latest
17-
1817 steps :
1918 - name : Extract version from input or release
2019 id : extract_version
@@ -84,13 +83,18 @@ jobs:
8483
8584 echo "Updated formula with version=${NEW_VERSION}, url=${NEW_URL}, sha256=${NEW_SHA256}"
8685 cat $FORMULA_PATH
87-
86+ - name : Show updated formula
87+ run : cat Formula/skidfuscator.rb
8888 - name : Commit and push changes
8989 run : |
90- git config user.name "github-actions"
91- git config user.email "github-actions@github.com"
92- git add Formula/skidfuscator.rb
93- git commit -m "Update Skidfuscator formula to version ${{ steps.extract_version.outputs.version }}"
94- git push origin HEAD:main
90+ if [[ -n "$(git status --porcelain)" ]]; then
91+ git config user.name "github-actions"
92+ git config user.email "github-actions@github.com"
93+ git add Formula/skidfuscator.rb
94+ git commit -m "Update Skidfuscator formula to version ${{ steps.extract_version.outputs.version }}"
95+ git push origin HEAD:main
96+ else
97+ echo "No changes to commit"
98+ fi
9599 env :
96100 GITHUB_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
You can’t perform that action at this time.
0 commit comments