From fe12827566f02d790f1c3591f8bce7b63aae726d Mon Sep 17 00:00:00 2001 From: Yann David Date: Wed, 27 Mar 2024 20:00:52 -0400 Subject: [PATCH] Trying to auto pass on only ignored files --- .github/workflows/pr.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index c825adc..2683ce5 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -25,9 +25,11 @@ jobs: id: check_if_only_ignored run: exit 0 - name: Get version from file + if: steps.changed-files.outputs.any_changed == 'true' id: get_version run: echo "version=$(cat VERSION)" >> $GITHUB_OUTPUT - name: 'Get Previous tag' + if: steps.changed-files.outputs.any_changed == 'true' id: previoustag uses: "WyriHaximus/github-action-get-previous-tag@v1.4.0" - name: Checking for version bump @@ -47,7 +49,7 @@ jobs: exit 1 fi - uses: mshick/add-pr-comment@v2.8.2 - if: always() + if: steps.changed-files.outputs.any_changed == 'true' with: message: | ${{ steps.check_vbump.outputs.msg }} \ No newline at end of file