Skip to content

Commit b5185ef

Browse files
authored
Merge pull request #151 from iterative/update-check-deployment-workflow-no-deploy
2 parents 57a7c25 + 60e8aa3 commit b5185ef

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

.github/workflows/check-deployment.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ on:
1313
required: true
1414
type: boolean
1515
pull_request:
16-
issue_comment:
17-
types: [created, edited]
16+
types: [opened, synchronize, reopened, labeled]
1817

1918
jobs:
2019
check-branches:
@@ -23,19 +22,8 @@ jobs:
2322
'no-deploy')
2423
runs-on: ubuntu-latest
2524
steps:
26-
- name: Pass CI with input
27-
if: ${{ inputs.passci }}
28-
run: exit 0
29-
- uses: khan/pull-request-comment-trigger@v1.1.0
30-
id: check
31-
with:
32-
trigger: '#pass-ci'
33-
reaction: rocket
34-
env:
35-
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
36-
- name: Fail if not triggred
37-
if: steps.check.outputs.triggered != 'true'
25+
- name: Fail if no passci inputs or pass-ci label
26+
if:
27+
${{ !inputs.passci &&
28+
!contains(github.event.pull_request.labels.*.name, 'pass-ci') }}
3829
run: exit 1
39-
- name: Exit gracefully
40-
if: steps.check.outputs.triggered == 'true'
41-
run: 'echo CI passed'

0 commit comments

Comments
 (0)