Skip to content

feature/actions: WIP #1

feature/actions: WIP

feature/actions: WIP #1

Workflow file for this run

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