Skip to content

Commit e4d47ce

Browse files
committed
chore(ci): Update update-deps workflow to use main branch and enhance permissions
1 parent 21dcdff commit e4d47ce

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

.github/workflows/update-deps.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,30 @@ on:
44
# Run every day.
55
schedule:
66
- cron: "0 3 * * *"
7-
# And on on every PR merge so we get the updated dependencies ASAP, and to make sure the changelog doesn't conflict.
7+
# And on every PR merge so we get the updated dependencies ASAP, and to make sure the changelog doesn't conflict.
88
push:
99
branches:
10-
- master
10+
- main
1111
workflow_dispatch:
1212

13+
permissions:
14+
contents: write # To modify files and create commits
15+
pull-requests: write # To create and update pull requests
16+
actions: write # To cancel previous workflow runs
17+
1318
jobs:
1419
update-cli:
15-
uses: getsentry/github-workflows/updater@95603f4efe938315ff0dd427a1f2bb40b1889a92 # v3.2.0
16-
with:
17-
path: script/sentry-cli.properties
18-
name: CLI
19-
secrets:
20-
api-token: ${{ secrets.CI_DEPLOY_KEY }}
20+
name: Update CLI
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: getsentry/github-workflows/updater@v3
24+
with:
25+
path: script/sentry-cli.properties
26+
name: CLI
27+
api-token: ${{ secrets.CI_DEPLOY_KEY }}
28+
2129
update-binaries:
30+
name: Update Binaries
2231
runs-on: ubuntu-latest
2332
needs: update-cli
2433
if: needs.update-cli.outputs.originalTag != needs.update-cli.outputs.latestTag

0 commit comments

Comments
 (0)