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