Skip to content

Commit ec31007

Browse files
authored
Update main.yml
1 parent e615c7e commit ec31007

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/main.yml

+10-7
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,21 @@ jobs:
2020
with:
2121
github-token: ${{ secrets.GITHUB_TOKEN }}
2222
branch: release
23+
- uses: actions/checkout@v4
24+
if: steps.find-pr.outputs.number == ''
25+
with:
26+
ref: release
27+
- name: Reset release branch
28+
if: steps.find-pr.outputs.number == ''
29+
run: |
30+
git fetch origin main:main
31+
git reset --hard main
2332
- name: Create/Update PR
2433
if: steps.find-pr.outputs.number == ''
2534
uses: peter-evans/create-pull-request@v6
2635
with:
2736
token: ${{ secrets.GITHUB_TOKEN }}
2837
commit-message: Update release branch
2938
title: Merge Release Auto-PR
30-
body: Merging this PR will invoke release actions
31-
32-
# none of these are in docs; I'm just guessing
33-
# because there MUST be a way to set this!
34-
target: release
35-
target-branch: release
36-
39+
body: Merging this PR will invoke release actions
3740
branch: auto-update/release

0 commit comments

Comments
 (0)