feature/actions: WIP #1
Workflow file for this run
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
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 |