Skip to content

Commit 604ae58

Browse files
authored
Update update-readme.yml
1 parent 4aebf84 commit 604ae58

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/update-readme.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,15 @@ jobs:
3333
id: update-readme
3434
run: |
3535
node update-readme.js parsed-badges.json
36-
if [ $? -eq 0 ]; then
37-
echo "changes-found=true" >> $GITHUB_ENV
38-
else
39-
echo "changes-found=false" >> $GITHUB_ENV
40-
fi
41-
echo "::notice::Checked and updated README if changes were found."
36+
continue-on-error: true # Allow job to continue even if no changes are found
37+
38+
outputs:
39+
changes-found: ${{ steps.update-readme.outcome == 'success' }}
4240

4341
create-pr:
4442
runs-on: ubuntu-22.04
4543
needs: check-and-update-readme
46-
if: env.changes-found == 'true'
44+
if: needs.check-and-update-readme.outputs['changes-found'] == 'true'
4745
steps:
4846
- name: Create branch and commit changes
4947
run: |

0 commit comments

Comments
 (0)