From baa0c087f532c5c760f6e1f280ffdf36bdb25144 Mon Sep 17 00:00:00 2001 From: per1234 Date: Tue, 12 Oct 2021 16:05:46 -0700 Subject: [PATCH] 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. --- .github/workflows/sync-labels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index fc5329f3..04f12434 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -91,7 +91,7 @@ jobs: - name: Determine whether to dry run id: dry-run if: > - github.event == 'pull_request' || + github.event_name == 'pull_request' || github.ref != format('refs/heads/{0}', github.event.repository.default_branch) run: | # Use of this flag in the github-label-sync command will cause it to only check the validity of the