Fix PR detection logic in CI

This commit is contained in:
Cody Soyland 2020-10-14 17:04:39 -05:00
parent fa21c81a27
commit 316bd87a8a

View file

@ -66,7 +66,8 @@ jobs:
executor:
name: golang
steps:
- run: curl https://moleculacorp:$GITHUB_PERSONAL_ACCESS_TOKEN@api.github.com/repos/molecula/pilosa/pulls/$CIRCLE_PR_NUMBER | jq "[.labels[] | .name | startswith(\"changelog\")] | any" -e
- run: '[[ -n $CIRCLE_PULL_REQUEST ]] || circleci step halt || true' # Skip if this is not a pull request
- run: curl https://moleculacorp:$GITHUB_PERSONAL_ACCESS_TOKEN@api.github.com/repos/molecula/pilosa/pulls/$(basename $CIRCLE_PULL_REQUEST) | jq "[.labels[] | .name | startswith(\"changelog\")] | any" -e
test-build-arm:
executor:
name: golang
@ -184,12 +185,9 @@ workflows:
requires:
- setup
- check-changelog-label:
context: molecula
requires:
- setup
# the following should make this only run on pull requests
filters:
branches:
only: /^pull\/.*$/
- test-build-arm:
requires:
- setup