Merge pull request #241 from Cockatrice/tooomm-ci_version_updater

CI: Small change in version update action
This commit is contained in:
Zach H 2023-10-31 22:56:51 -04:00 committed by GitHub
commit 947fdc191e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}}