Skip to content

Commit ec9e427

Browse files
committed
Fix branch references from 'main' to 'master' in GitHub workflows
Corrects workflow trigger conditions to properly match the repository's master branch instead of main: - wheels.yml: Fix pull_request branches, comments, and publish condition - main.yml: Fix push and pull_request branch triggers This resolves the issue where publish-github-releases job was not triggering on master branch pushes due to incorrect branch reference.
1 parent aeb3c7f commit ec9e427

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: main
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [master]
66
pull_request:
7-
branches: [main]
7+
branches: [master]
88
workflow_dispatch:
99

1010
env:

.github/workflows/wheels.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ on:
55
push:
66
branches: ["**"]
77
pull_request:
8-
branches: [main]
8+
branches: [master]
99

10-
# Publish to GitHub Releases when merged to main
10+
# Publish to GitHub Releases when merged to master
1111
# Publish to PyPI when tagged
1212
workflow_dispatch:
1313

@@ -159,9 +159,7 @@ jobs:
159159
name: Publish to GitHub Releases
160160
needs: build-wheels
161161
runs-on: ubuntu-latest
162-
if:
163-
github.ref == 'refs/heads/main' && github.event_name ==
164-
'push'
162+
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
165163

166164
steps:
167165
- name: Download all wheel artifacts

0 commit comments

Comments
 (0)