Correct context key name in "Sync Labels" workflow

Incorrect context key name resulted in impossible to satisfy conditional, meaning the dry run determination code was
solely dependent on the check for whether the workflow was triggered from the default branch name.
This commit is contained in:
per1234 2021-10-12 15:56:14 -07:00
parent 1c42b8cefc
commit 060ab5bccb

View File

@ -92,7 +92,7 @@ jobs:
- name: Determine whether to dry run - name: Determine whether to dry run
id: dry-run id: dry-run
if: > if: >
github.event == 'pull_request' || github.event_name == 'pull_request' ||
github.ref != format('refs/heads/{0}', github.event.repository.default_branch) github.ref != format('refs/heads/{0}', github.event.repository.default_branch)
run: | run: |
# Use of this flag in the github-label-sync command will cause it to only check the validity of the # Use of this flag in the github-label-sync command will cause it to only check the validity of the