Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add upgrade trunk workflow #587

Merged
merged 4 commits into from
Dec 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/upgrade_trunk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Upgrade Trunk Weekly
on:
schedule:
# Weekly at midnight W morning
- cron: 0 8 * * 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@v3

- name: Create App Token for TrunkBuild App (Internal)
uses: tibdex/github-app-token@v1
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@98224163e8e5d90318f26bca1eeb605f8ce8781b
with:
arguments: -n --bleeding-edge
github-token: ${{ steps.generate-token.outputs.token }}
reviewers: TylerJang27
Loading