We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0b40408 + 6f1217e commit da49a5aCopy full SHA for da49a5a
.github/workflows/sync-labels.yml
@@ -92,8 +92,14 @@ jobs:
92
- name: Determine whether to dry run
93
id: dry-run
94
if: >
95
- github.event == 'pull_request' ||
96
- github.ref != format('refs/heads/{0}', github.event.repository.default_branch)
+ github.event_name == 'pull_request' ||
+ (
97
98
+ github.event_name == 'push' ||
99
+ github.event_name == 'workflow_dispatch'
100
+ ) &&
101
+ github.ref != format('refs/heads/{0}', github.event.repository.default_branch)
102
+ )
103
run: |
104
# Use of this flag in the github-label-sync command will cause it to only check the validity of the
105
# configuration.
0 commit comments