Skip to content

Commit

Permalink
Set branch ref to main if branch has been deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslinnell committed Nov 8, 2024
1 parent ae2bad2 commit cf01e74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/on-pr-close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ env.BRANCH_NAME }}
ref: ${{ env.BRANCH_NAME || 'main' }}
- uses: ./.github/actions/make/
with:
command: build
Expand All @@ -41,7 +41,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ env.BRANCH_NAME }}
ref: ${{ env.BRANCH_NAME || 'main' }}
fetch-depth: 0
- name: Remove PR workspaces
uses: ./.github/actions/make/
Expand Down

0 comments on commit cf01e74

Please sign in to comment.