mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-21 14:14:30 +00:00
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 <519948+ARR4N@users.noreply.github.com>
This commit is contained in:
parent
a8cc7bd033
commit
21122c043a
1 changed files with 1 additions and 1 deletions
2
.github/workflows/rename-module.yml
vendored
2
.github/workflows/rename-module.yml
vendored
|
|
@ -71,7 +71,7 @@ jobs:
|
|||
- name: Open PR to "renamed-go-module" iff workflow dispatched on "main"
|
||||
# If we are changing the way in which we manage module renaming then it
|
||||
# MUST go through PR review to main; only then can it open PRs.
|
||||
if: github.event_name == 'workflow_dispatch' && github.ref != 'refs/heads/main'
|
||||
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main'
|
||||
uses: devops-infra/action-pull-request@v0.5.5
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue