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 }}