diff --git a/.github/workflows/updateversion.yml b/.github/workflows/updateversion.yml index 84062f3..e4d5484 100644 --- a/.github/workflows/updateversion.yml +++ b/.github/workflows/updateversion.yml @@ -5,6 +5,8 @@ on: types: [submitted] issue_comment: types: [created] + pull_request: + paths: '.github/workflows/updateversion.yml' jobs: update_version: @@ -22,7 +24,8 @@ jobs: github.event.comment.author_association == 'MEMBER' ) && endsWith( github.event.comment.body, '@github-actions update version' ) - ) + ) || + ( github.event_name == 'pull_request' ) runs-on: ubuntu-latest steps: - name: Get proper pr info @@ -136,6 +139,7 @@ jobs: echo "$VERSION" >version.txt - name: Push changes + if: github.event_name != 'pull_request' shell: bash env: REPO_PAGE: ${{steps.configure.outputs.page}}