forked from trunk-io/plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 930 Bytes
/
upgrade_trunk.yaml
File metadata and controls
33 lines (29 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Upgrade Trunk Weekly
on:
schedule:
# Weekly W morning
- cron: 0 10 * * 3
workflow_dispatch: {}
permissions: read-all
jobs:
trunk_upgrade:
name: Upgrade Trunk
runs-on: ubuntu-latest
permissions:
contents: write # For trunk to create PRs
pull-requests: write # For trunk to create PRs
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Create App Token for TrunkBuild App (Internal)
uses: tibdex/github-app-token@v2
id: generate-token
with:
app_id: ${{ secrets.TRUNK_OPEN_PR_APP_ID }}
private_key: ${{ secrets.TRUNK_OPEN_PR_APP_PRIVATE_KEY }}
- name: Trunk Upgrade
uses: trunk-io/trunk-action/upgrade@4d5ecc89b2691705fd08c747c78652d2fc806a94
with:
arguments: -n --bleeding-edge
github-token: ${{ steps.generate-token.outputs.token }}
reviewers: TylerJang27