Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
Add workflow to re-run the check-label CircleCI job when labels… (#54)
Browse files Browse the repository at this point in the history
Add workflow to re-run the `check-label` CircleCI job when labels are changed
  • Loading branch information
Justin Anastos authored Aug 7, 2019
2 parents b7edcd2 + 597c43c commit f120edf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
workflow "Re-run check-label when label changes" {
resolves = ["fire check-label"]
on = "pull_request"
}

action "action-filter" {
uses = "actions/bin/filter@master"
args = "action 'labeled|unlabeled'"
}

action "fire check-label" {
uses = "swinton/httpie.action@69125d73caa2c6821f6a41a86112777a37adc171"
needs = "action-filter"
secrets = ["CIRCLE_API_TOKEN"]
args = ["-v", "-a=${CIRCLE_API_TOKEN}:", "POST", "https://circleci.com/api/v1.1/project/github/apollographql/space-kit/tree/${GITHUB_REF#*refs/heads/}", "build_parameters:='{\"CIRCLE_JOB\": \"check-label\"}'"]
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,8 @@ Each PR needs to have a SemVer lable in GitHub so `auto` knows how to . Availabl
Use `skip-release` if you don't want an automatic release with your PR.
There is a CircleCI job that checks that an appropriate label is on the PR. It will always fail initially. GitHub actions are set up to re-run the CI check when labels are added or removed. it can be found in [`.github/main.workflow`](./.github/main.workflow).
#### Changelog
The changelog will be updated automatically with the title of your PR used as the line item in the changelog. The sections of the changelog will decided by the labels you gave your PR. If you want to add more information for the changelog, add a `## Release Notes` section in your PR description. https://intuit.github.io/auto/pages/auto-changelog.html#additional-release-notes
Expand Down

0 comments on commit f120edf

Please sign in to comment.