Skip to content

Commit d2e5654

Browse files
committed
Update publish-package-pr.yml
1 parent 5ac4044 commit d2e5654

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/publish-package-pr.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,24 @@ jobs:
2828
with:
2929
repository: ${{ github.repository }}
3030
path: source-repo
31+
32+
# Generate the app token
33+
- name: Generate app token
34+
id: bot_auth
35+
uses: actions/create-github-app-token@v2
36+
with:
37+
app-id: ${{ vars.DAXLIBDEVBOT_APPID }}
38+
private-key: ${{ secrets.DAXLIBDEVBOT_APPKEY }}
39+
owner: daxlib
40+
repositories: daxlib
3141

3242
# Checkout the upstream repository daxlib/daxlib
3343
- name: Checkout upstream
3444
uses: actions/checkout@v4
3545
with:
3646
repository: daxlib/daxlib
3747
path: upstream-repo
38-
token: ${{ secrets.DAXLIB_TOKEN }} # Required to push changes
48+
token: ${{ steps.bot_auth.outputs.token }}
3949

4050
# Configure Git
4151
- name: Git config
@@ -100,7 +110,7 @@ jobs:
100110
if: steps.branch.outputs.action == 'Add'
101111
working-directory: upstream-repo
102112
env:
103-
GH_TOKEN: ${{ secrets.DAXLIB_TOKEN }}
113+
GH_TOKEN: ${{ steps.bot_auth.outputs.token }}
104114
run: |
105115
gh pr create \
106116
--title "Add package \`${{ steps.package.outputs.name }}\` version ${{ steps.package.outputs.version }}" \

0 commit comments

Comments
 (0)