Skip to content

Commit

Permalink
Prevent forks PR from failing due to messages not working (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
Typositoire authored Mar 28, 2024
1 parent be3efb7 commit 0c4337f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@ jobs:
for file in ${ALL_CHANGED_FILES}; do
echo "$file was changed"
done
echo "msg=Version bump not required." >> $GITHUB_OUTPUT
- name: auto_pass
if: steps.changed-files.outputs.all_modified_files_count == '0'
id: check_if_only_ignored
run: |
echo "msg=Version bump not required." >> $GITHUB_OUTPUT
exit 0
- name: Get version from file
Expand Down Expand Up @@ -69,6 +68,7 @@ jobs:
fi
- uses: mshick/[email protected]
if: always()
continue-on-error: true # Currently this resource doesn't work as is with forks
with:
message: |
${{ steps.list_changed_files.outputs.msg || steps.check_vbump.outputs.msg }}
${{ steps.check_if_only_ignored.outputs.msg || steps.check_vbump.outputs.msg }}

0 comments on commit 0c4337f

Please sign in to comment.