Skip to content

Commit 2f0703e

Browse files
committed
Fix for workflows creating pull requests.
The existing branch name started causing the PR creation to fail. Simplifying it seems to fix the problem.
1 parent 57edc24 commit 2f0703e

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/copyrights.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: peter-evans/create-pull-request@v4
1515
with:
1616
token: ${{ secrets.GITHUB_TOKEN }}
17-
branch: update-copyright-list-${{ github.ref }}
17+
branch: update-copyright-list-${{ github.ref_name }}
1818
delete-branch: true
1919
commit-message: 'Update copyright list in license'
2020
title: 'Update copyright list in license'

.github/workflows/generated-headers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- uses: peter-evans/create-pull-request@v4
2525
with:
2626
token: ${{ secrets.GITHUB_TOKEN }}
27-
branch: update-generated-headers-${{ github.ref }}
27+
branch: update-generated-headers-${{ github.ref_name }}
2828
delete-branch: true
2929
commit-message: 'Update generated headers'
3030
title: 'Update generated headers'

.github/workflows/misspell.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: peter-evans/create-pull-request@v4
1313
with:
1414
token: ${{ secrets.GITHUB_TOKEN }}
15-
branch: misspell-fixes-${{ github.ref }}
15+
branch: misspell-fixes-${{ github.ref_name }}
1616
delete-branch: true
1717
commit-message: 'Fixes by misspell-fixer'
1818
title: 'Typos fixed by misspell-fixer'

.github/workflows/tidy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: peter-evans/create-pull-request@v4
2020
with:
2121
token: ${{ secrets.GITHUB_TOKEN }}
22-
branch: clang-tidy-fixes-${{ github.ref }}
22+
branch: clang-tidy-fixes-${{ github.ref_name }}
2323
delete-branch: true
2424
commit-message: 'Automated fixes by clang-tidy'
2525
title: 'Automated fixes by clang-tidy'

0 commit comments

Comments
 (0)