Skip to content

Commit 21122c0

Browse files
authored
fix: run renaming workflow if branch == main (#58)
## Why this should be merged #51 had a bug when checking whether or not to open a PR. I was originally blocking everything if _not_ on main instead of doing something if on it. The [manually dispatched run therefore didn't open a PR as expected](https://github.com/ava-labs/libevm/actions/runs/11299366394/job/31430160561). ## How this works Change `!=` to `==` ## How this was tested n/a Signed-off-by: Arran Schlosberg <[email protected]>
1 parent a8cc7bd commit 21122c0

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)