Skip to content

Commit e9eeeaf

Browse files
committed
fix: semantic release repo should use github app when configured
1 parent ff8b902 commit e9eeeaf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/semantic-release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ jobs:
2525
issues: write # to be able to comment on released issues
2626
pull-requests: write # to be able to comment on released pull requests
2727
env:
28-
USE_GH_APP: ${{ inputs.GH_APP_ID && secrets.GH_APP_PEM_FILE }}
28+
USE_GH_APP: ${{ inputs.GH_APP_ID && secrets.GH_APP_PEM_FILE || vars.GH_APP_SEM_REL_ID && secrets.GH_APP_SEM_REL_PEM_FILE }}
2929

3030
steps:
3131
- name: Create GitHub App token
3232
uses: actions/create-github-app-token@v2
3333
id: gh-app-token
3434
if: env.USE_GH_APP
3535
with:
36-
app-id: ${{ inputs.GH_APP_ID }}
37-
private-key: ${{ secrets.GH_APP_PEM_FILE }}
36+
app-id: ${{ inputs.GH_APP_ID || vars.GH_APP_SEM_REL_ID }}
37+
private-key: ${{ secrets.GH_APP_PEM_FILE || secrets.GH_APP_SEM_REL_PEM_FILE }}
3838

3939
- name: Checkout repository
4040
uses: actions/checkout@v4

0 commit comments

Comments
 (0)