Skip to content

Commit c17b52a

Browse files
committed
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.
1 parent 0b40408 commit c17b52a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: .github/workflows/sync-labels.yml

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

0 commit comments

Comments
 (0)