-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
334c2b8
commit ffa65f6
Showing
4 changed files
with
30 additions
and
4 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,24 @@ | ||
name: Enable Tracing for PR | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, labeled, unlabeled, closed] | ||
|
||
jobs: | ||
tracing: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Check for "enable tracing" label | ||
id: check-label | ||
run: | | ||
label=$(jq -r '.pull_request.labels[].name' "$GITHUB_EVENT_PATH") | ||
if [[ "$label" == "enable tracing" ]]; then | ||
echo "Enable tracing label found." | ||
echo "::set-output name=trace::true" | ||
else | ||
echo "Enable tracing label not found." | ||
echo "::set-output name=trace::false" | ||
fi |
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
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
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