Skip to content

Commit 431bc27

Browse files
authored
Update create-pr.yml
1 parent 097914c commit 431bc27

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/create-pr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ jobs:
1919
fetch-depth: 0
2020

2121
- name: Create Pull Request
22+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
2223
uses: peter-evans/create-pull-request@v5
2324
with:
2425
token: ${{ secrets.GITHUB_TOKEN }}
2526
base: gh-pages
26-
branch: ${{ github.event.workflow_run.conclusion == 'success' && 'update-badges-' + github.run_id }}
27+
branch: ${{ format('update-badges-{0}', github.event.workflow_run.run_id) }}
2728
title: "Update badges.json"
2829
body: |
2930
This pull request updates `badges.json` with the latest release URLs.

0 commit comments

Comments
 (0)