Skip to content

Commit 88f0c3c

Browse files
committed
Fix skipping non-default branches for push
1 parent 6b281a7 commit 88f0c3c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/update-and-build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ jobs:
6666
if: env.SIGNIFICANT_CHANGES
6767
- name: Push commit
6868
uses: ad-m/github-push-action@881a6320fdb16eb5318c5054f31c218aec2b324c # v1.3.0
69-
if: env.SIGNIFICANT_CHANGES && (github.event.workflow_run.head_branch == github.event.repository.default_branch)
69+
if: env.SIGNIFICANT_CHANGES && (github.event_name == 'schedule' || github.ref_name
70+
== github.event.repository.default_branch)
7071
with:
7172
branch: ${{ matrix.version }}
7273
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)