44 - cron : ' 0 9 * * 1' # Run every Monday at 9 AM UTC
55 workflow_dispatch : # Allow manual triggering
66 workflow_call : # Allow calling from other workflows
7- secrets :
8- GITHUB_APP_ID :
9- description : ' GitHub App ID for authentication'
10- required : false
11- GITHUB_APP_PRIVATE_KEY :
12- description : ' GitHub App private key for authentication'
13- required : false
147
158jobs :
169 check-and-update :
@@ -21,19 +14,17 @@ jobs:
2114
2215 steps :
2316 - name : Generate GitHub App token
24- if : ${{ secrets.GITHUB_APP_ID != '' && secrets.GITHUB_APP_PRIVATE_KEY != '' }}
2517 id : generate_token
2618 uses : actions/create-github-app-token@v1
2719 with :
28- app-id : ${{ secrets.GITHUB_APP_ID }}
29- private-key : ${{ secrets.GITHUB_APP_PRIVATE_KEY }}
30- repositories : sourcebot-helm-chart
20+ app-id : ${{ secrets.RELEASE_APP_ID }}
21+ private-key : ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
3122
3223 - name : Checkout repository
3324 uses : actions/checkout@v4
3425 with :
3526 repository : sourcebot-dev/sourcebot-helm-chart
36- token : ${{ steps.generate_token.outputs.token || secrets.GITHUB_TOKEN }}
27+ token : ${{ steps.generate_token.outputs.token }}
3728
3829 - name : Get current Sourcebot version
3930 id : current-version
10596 if : steps.version-check.outputs.needs_update == 'true'
10697 uses : peter-evans/create-pull-request@v6
10798 with :
108- token : ${{ steps.generate_token.outputs.token || secrets.GITHUB_TOKEN }}
99+ token : ${{ steps.generate_token.outputs.token }}
109100 commit-message : |
110101 chore: bump sourcebot to ${{ steps.latest-version.outputs.latest }}
111102
0 commit comments