Skip to content

Commit 7e40504

Browse files
authored
fix: run renaming workflow if branch == main
Signed-off-by: Arran Schlosberg <[email protected]>
1 parent a8cc7bd commit 7e40504

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/rename-module.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
- name: Open PR to "renamed-go-module" iff workflow dispatched on "main"
7272
# If we are changing the way in which we manage module renaming then it
7373
# MUST go through PR review to main; only then can it open PRs.
74-
if: github.event_name == 'workflow_dispatch' && github.ref != 'refs/heads/main'
74+
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main'
7575
uses: devops-infra/[email protected]
7676
with:
7777
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)