@@ -19,27 +19,34 @@ jobs:
1919 GH_TOKEN : ${{ secrets.BOT_GH_TOKEN }} # for gh cli
2020
2121 steps :
22- - name : Checkout template repository
23- uses : actions/checkout@v6
22+ - name : Install the latest version of uv
23+ uses : astral-sh/setup-uv@v7
24+ with :
25+ cache-dependency-glob : .github/workflows/deploy-instance-repo.yml
2426
2527 - name : Set git identity
2628 run : |
2729 git config --global user.name "scverse-bot"
2830 git config --global user.email "108668866+scverse-bot@users.noreply.github.com"
2931
32+ - name : Checkout template repository
33+ uses : actions/checkout@v6
34+
35+ - name : Generate tokens
36+ id : app-token
37+ uses : actions/create-github-app-token@v2
38+ with :
39+ app-id : ${{ vars.PR_CREATOR_APP_ID }}
40+ private-key : ${{ secrets.PR_CREATOR_PRIVATE_KEY }}
41+
3042 - name : Checkout instance repository
3143 uses : actions/checkout@v6
3244 with :
3345 repository : ${{ env.INSTANCE_REPO_GITHUB }}
34- token : ${{ secrets.BOT_GH_TOKEN }}
46+ token : ${{ steps.app-token.outputs.token }}
3547 path : ${{ env.INSTANCE_REPO }}
3648 persist-credentials : true
3749
38- - name : Install the latest version of uv
39- uses : astral-sh/setup-uv@v7
40- with :
41- cache-dependency-glob : .github/workflows/deploy-instance-repo.yml
42-
4350 - name : define sister PR branch name for pull request
4451 if : github.event_name == 'pull_request'
4552 run : |
9097 if : ${{ env.GIT_HAS_CHANGES == 'TRUE' }}
9198 uses : ad-m/github-push-action@v0.8.0
9299 with :
93- github_token : ${{ secrets.BOT_GH_TOKEN }}
100+ github_token : ${{ steps.app-token.outputs.token }}
94101 branch : ${{ env.SISTER_PR_BRANCH }}
95102 repository : scverse/cookiecutter-scverse-instance
96103 force : false
@@ -144,7 +151,7 @@ jobs:
144151 [checks]: https://github.com/scverse/cookiecutter-scverse-instance/pull/${{ env.SISTER_PR_ID }}/checks
145152 [docs-badge]: https://app.readthedocs.org/projects/cookiecutter-scverse-instance/badge/?version=${{ env.SISTER_PR_ID }}
146153 [docs]: https://cookiecutter-scverse-instance--${{ env.SISTER_PR_ID }}.org.readthedocs.build/
147- repo-token : ${{ secrets.GITHUB_TOKEN }}
154+ repo-token : ${{ steps.app-token.outputs.token }}
148155 allow-repeats : false
149156
150157 - name : Query status of checks in template repository
0 commit comments