1
0
mirror of https://github.com/arduino/library-registry.git synced 2025-07-07 14:41:10 +03:00

Merge pull request #580 from per1234/sync-labels-fix

Fix bugs in dry run determination code for "Sync Labels" workflow
This commit is contained in:
per1234
2021-10-13 01:50:50 -07:00
committed by GitHub

View File

@ -91,8 +91,14 @@ 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.event_name == 'push' ||
github.event_name == 'workflow_dispatch'
) &&
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
# configuration. # configuration.