@@ -18,26 +18,42 @@ jobs:
1818 runs-on : ubuntu-latest
1919 environment : release
2020 permissions : {}
21+ env :
22+ RELEASE_BOT_APP_ID : ${{ vars.RELEASE_BOT_APP_ID || secrets.RELEASE_BOT_APP_ID }}
23+ RELEASE_BOT_PRIVATE_KEY : ${{ secrets.RELEASE_BOT_PRIVATE_KEY }}
2124 steps :
25+ - name : Check release bot credentials
26+ id : release-bot
27+ run : |
28+ if [ -z "${RELEASE_BOT_APP_ID}" ] || [ -z "${RELEASE_BOT_PRIVATE_KEY}" ]; then
29+ echo "configured=false" >> "$GITHUB_OUTPUT"
30+ echo "::notice::Release bot credentials are not configured; skipping release PR automation."
31+ else
32+ echo "configured=true" >> "$GITHUB_OUTPUT"
33+ fi
34+
2235 - name : Mint scoped app token
36+ if : steps.release-bot.outputs.configured == 'true'
2337 id : app-token
2438 uses : actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
2539 with :
26- app -id : ${{ secrets .RELEASE_BOT_APP_ID }}
27- private-key : ${{ secrets .RELEASE_BOT_PRIVATE_KEY }}
40+ client -id : ${{ env .RELEASE_BOT_APP_ID }}
41+ private-key : ${{ env .RELEASE_BOT_PRIVATE_KEY }}
2842 owner : tempoxyz
2943 repositories : wallet
3044 permission-contents : write
3145 permission-pull-requests : write
3246 permission-metadata : read
3347
3448 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
49+ if : steps.release-bot.outputs.configured == 'true'
3550 with :
3651 fetch-depth : 0
3752 token : ${{ steps.app-token.outputs.token }}
3853 persist-credentials : false
3954
4055 - uses : tempoxyz/changelogs@54f693643e1bd8469293bdfcbfb647bceb559490 # changelogs@0.6.3 + unified PR title + install from source
56+ if : steps.release-bot.outputs.configured == 'true'
4157 id : changelogs
4258 with :
4359 conventional-commit : true
0 commit comments