Skip to content

Commit

Permalink
ci: add trunk upgrade action
Browse files Browse the repository at this point in the history
  • Loading branch information
rriski committed Jan 18, 2024
1 parent 2e2075b commit 7680e63
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/trunk-upgrade.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# https://github.com/trunk-io/trunk-action/tree/34242ec4eb8cf594887600f1f9b889e7c630ec18?tab=readme-ov-file#automatic-upgrades
name: trunk upgrade

on:
schedule:
- cron: 0 8 * * 1-5
workflow_dispatch: {}

permissions: read-all

jobs:
trunk_upgrade:
runs-on: ubuntu-latest
permissions:
contents: write # For trunk to create PRs
pull-requests: write # For trunk to create PRs
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- uses: trunk-io/trunk-action/upgrade@v1

0 comments on commit 7680e63

Please sign in to comment.