Skip to content

Commit 23cc95e

Browse files
authored
Update update-readme.yml
1 parent 735f88f commit 23cc95e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/update-readme.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,13 @@ jobs:
4949
id: update-readme
5050
run: |
5151
node update-readme.js parsed-badges.json
52+
echo "::set-output name=changes-found::true"
5253
echo "::notice::Checked and updated README if changes were found."
54+
continue-on-error: true
5355

5456
# Step 6: Commit changes and create a new branch
5557
- name: Commit changes and create a new branch
56-
if: ${{ steps.update-readme.outputs.changes_found == 'true' }}
58+
if: ${{ steps.update-readme.outcome == 'success' }}
5759
run: |
5860
git config --local user.name "GitHub Actions Bot"
5961
git config --local user.email "[email protected]"
@@ -67,7 +69,7 @@ jobs:
6769
echo "::notice::Changes committed and branch pushed."
6870
6971
- name: Upload branch name artifact
70-
if: ${{ steps.update-readme.outputs.changes_found == 'true' }}
72+
if: ${{ steps.update-readme.outcome == 'success' }}
7173
uses: actions/upload-artifact@v4
7274
with:
7375
name: branch-name

0 commit comments

Comments
 (0)