Skip to content

Commit 3a589fb

Browse files
authored
Update create-pr.yml
1 parent 6d87fb9 commit 3a589fb

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/create-pr.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,28 @@ jobs:
1313
contents: write
1414

1515
steps:
16+
- name: Download branch name artifact
17+
uses: actions/download-artifact@v3
18+
with:
19+
name: branch-name
20+
21+
- name: Load branch name
22+
run: |
23+
source $(cat branch-name | grep BRANCH_NAME | cut -d= -f2)
24+
1625
- name: Checkout repository
1726
uses: actions/checkout@v3
1827
with:
1928
ref: gh-pages
2029
fetch-depth: 0
2130

22-
- name: Verify git repository state
23-
run: |
24-
git status
25-
git branch
26-
2731
- name: Create Pull Request
2832
if: ${{ github.event.workflow_run.conclusion == 'success' }}
2933
uses: peter-evans/create-pull-request@v5
3034
with:
3135
token: ${{ secrets.GITHUB_TOKEN }}
3236
base: gh-pages
33-
branch: ${{ format('update-badges-{0}', github.event.workflow_run.run_id) }}
37+
branch: ${{ env.BRANCH_NAME }}
3438
title: "Update badges.json"
3539
body: |
3640
This pull request updates `badges.json` with the latest release URLs.

0 commit comments

Comments
 (0)