mirror of
https://github.com/Cockatrice/Magic-Token.git
synced 2026-04-22 01:27:27 -05:00
Merge pull request #241 from Cockatrice/tooomm-ci_version_updater
CI: Small change in version update action
This commit is contained in:
commit
947fdc191e
6
.github/workflows/updateversion.yml
vendored
6
.github/workflows/updateversion.yml
vendored
|
|
@ -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}}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user