From 0c4337fdc5b6cf806058b2cc50e138c87fdd6e18 Mon Sep 17 00:00:00 2001 From: Yann David Date: Thu, 28 Mar 2024 13:01:05 -0400 Subject: [PATCH] Prevent forks PR from failing due to messages not working (#112) --- .github/workflows/pr.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 0dbbe63..b20868c 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -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 @@ -69,6 +68,7 @@ jobs: fi - uses: mshick/add-pr-comment@v2.8.2 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 }} \ No newline at end of file + ${{ steps.check_if_only_ignored.outputs.msg || steps.check_vbump.outputs.msg }} \ No newline at end of file