Skip to content

Commit 07dade7

Browse files
fix update pipeline
1 parent 4bedcb7 commit 07dade7

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

.github/workflows/update-sourcebot-version.yaml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@ on:
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

158
jobs:
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
@@ -105,7 +96,7 @@ jobs:
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

Comments
 (0)