This repository has been archived by the owner on Jan 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to re-run the
check-label
CircleCI job when labels are…
… changed
- Loading branch information
1 parent
b7edcd2
commit 597c43c
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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\"}'"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters