From 7e40504da3f04fe10446afb64818327f6be92e97 Mon Sep 17 00:00:00 2001 From: Arran Schlosberg <519948+ARR4N@users.noreply.github.com> Date: Fri, 11 Oct 2024 22:20:19 +0100 Subject: [PATCH] fix: run renaming workflow if branch `== main` 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 a197cca7ab6..b2ccc20714b 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 }}