Skip to content

Commit

Permalink
Correct label check and avoid neutral status
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhuy committed Aug 20, 2019
1 parent b63bd4b commit 4808f6a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ jobs:
name: Build approval
runs-on: macOS-10.14
steps:
- name: Block if a pull request is from a forked repository and it hasn't been labeled by a maintainer.
if: github.event_name == 'pull_request' && !contains(github.event.pull_request.labels, 'CI approved')
- name: Block if a pull request is from a forked repository and it hasn't been labeled by a maintainer
if: github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'CI approved')
run: exit 255
- name: Approved!
if: !failure
run: exit 0
buildsh:
strategy:
matrix:
Expand Down

0 comments on commit 4808f6a

Please sign in to comment.