chore(ci): allow manual trigger via issue
All checks were successful
CI / ci (pull_request) Successful in 1m52s
All checks were successful
CI / ci (pull_request) Successful in 1m52s
This commit is contained in:
parent
191ba2b20d
commit
12a4cb58e0
@ -8,17 +8,18 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
check_manual_trigger:
|
check_manual_trigger:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: contains(gitea.event.issue.number, '436') || contains(gitea.event.issue.number, 436) # check if the comments come from issue #436
|
|
||||||
steps:
|
steps:
|
||||||
- name: Allow workflow
|
- name: Allow workflow
|
||||||
if: contains(gitea.event.comment.body, '/trigger-release') && contains(gitea.event.comment.user.login, 'luke')
|
if: contains(gitea.event.issue.number, '436')) && contains(gitea.event.comment.body, '/trigger-release') && contains(gitea.event.comment.user.login, 'luke')
|
||||||
run: exit 0
|
run: exit 0
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
name: Unit Test
|
||||||
needs: check_manual_trigger
|
needs: check_manual_trigger
|
||||||
uses: https://git.tainton.uk/public/webexmemebot/src/branch/main/.gitea/workflows/ci.yml
|
uses: https://git.tainton.uk/public/webexmemebot/src/branch/main/.gitea/workflows/ci.yml
|
||||||
|
|
||||||
create_release:
|
create_release:
|
||||||
|
name: Create Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: test
|
needs: test
|
||||||
outputs:
|
outputs:
|
||||||
|
Loading…
Reference in New Issue
Block a user