From 21122c043a78678934e3b4fcb4da09b113daa8fc Mon Sep 17 00:00:00 2001 From: Arran Schlosberg <519948+ARR4N@users.noreply.github.com> Date: Fri, 11 Oct 2024 22:35:31 +0100 Subject: [PATCH] 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> --- .github/workflows/rename-module.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rename-module.yml b/.github/workflows/rename-module.yml index a197cca7ab61..b2ccc20714b4 100644 --- a/.github/workflows/rename-module.yml +++ b/.github/workflows/rename-module.yml @@ -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 }}