You've already forked library-registry
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:
8
.github/workflows/sync-labels.yml
vendored
8
.github/workflows/sync-labels.yml
vendored
@ -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.
|
||||||
|
Reference in New Issue
Block a user