Skip to content

feature/actions: WIP #3

feature/actions: WIP

feature/actions: WIP #3

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 "trace=true" >> $GITHUB_OUTPUT
else
echo "Enable tracing label not found."
echo "trace=true" >> $GITHUB_OUTPUT
fi