Skip to content

Commit

Permalink
fix: run renaming workflow if branch == main
Browse files Browse the repository at this point in the history
Signed-off-by: Arran Schlosberg <[email protected]>
  • Loading branch information
ARR4N authored Oct 11, 2024
1 parent a8cc7bd commit 7e40504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/rename-module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 7e40504

Please sign in to comment.