-
Notifications
You must be signed in to change notification settings - Fork 25
34 lines (30 loc) · 1002 Bytes
/
Copy pathweekly.yaml
File metadata and controls
34 lines (30 loc) · 1002 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
34
name: Weekly
on:
schedule:
# Weekly at midnight Monday morning
- cron: 0 8 * * 1
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Create App Token for TrunkBuild App (Internal)
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
id: generate-token
with:
app_id: ${{ secrets.TRUNK_OPEN_PR_APP_ID }}
private_key: ${{ secrets.TRUNK_OPEN_PR_APP_PRIVATE_KEY }}
# external users: trunk-io/trunk-action/upgrade@v1
- name: Trunk Upgrade
id: upgrade
uses: ./upgrade
with:
github-token: ${{ steps.generate-token.outputs.token }}
reviewers: TylerJang27