Skip to content

Commit 42d85de

Browse files
committed
Set branch ref to main if branch has been deleted
1 parent 783bfa6 commit 42d85de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/on-pr-close.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
steps:
2929
- uses: actions/checkout@v4
3030
with:
31-
ref: ${{ env.BRANCH_NAME }}
31+
ref: ${{ env.BRANCH_NAME || 'main' }}
3232
- uses: ./.github/actions/make/
3333
with:
3434
command: build
@@ -41,7 +41,7 @@ jobs:
4141
steps:
4242
- uses: actions/checkout@v4
4343
with:
44-
ref: ${{ env.BRANCH_NAME }}
44+
ref: ${{ env.BRANCH_NAME || 'main' }}
4545
fetch-depth: 0
4646
- name: Remove PR workspaces
4747
uses: ./.github/actions/make/

0 commit comments

Comments
 (0)