File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }}" \
You can’t perform that action at this time.
0 commit comments