trunk upgrade
This commit is contained in:
parent
f3a6297464
commit
70d0b3adbe
2 changed files with 56 additions and 9 deletions
47
.github/workflows/trunk.upgrade.yml
vendored
Normal file
47
.github/workflows/trunk.upgrade.yml
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
name: Trunk Upgrade
|
||||
|
||||
permissions: read-all
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- .trunk/trunk.yaml
|
||||
- .github/workflows/trunk.upgrade.yml
|
||||
schedule:
|
||||
- cron: "0 11 * * 1" # 11am Tooling Monday
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
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: "Setup PHP"
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 8.3
|
||||
- name: "Checkout"
|
||||
uses: actions/checkout@v4
|
||||
- name: "Trunk Upgrade"
|
||||
uses: trunk-io/trunk-action/upgrade@v1
|
||||
- name: "PR: Find Pull Request"
|
||||
uses: juliangruber/find-pull-request-action@v1
|
||||
id: find-pull-request
|
||||
with:
|
||||
labels: trunk
|
||||
- name: "PR: Enable Pull Request Automerge"
|
||||
continue-on-error: true
|
||||
uses: peter-evans/enable-pull-request-automerge@v3
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
pull-request-number: ${{ steps.find-pull-request.outputs.number }}
|
|
@ -2,12 +2,12 @@
|
|||
# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml
|
||||
version: 0.1
|
||||
cli:
|
||||
version: 1.22.1
|
||||
version: 1.22.2
|
||||
# Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins)
|
||||
plugins:
|
||||
sources:
|
||||
- id: trunk
|
||||
ref: v1.5.0
|
||||
ref: v1.6.1
|
||||
uri: https://github.com/trunk-io/plugins
|
||||
# Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes)
|
||||
runtimes:
|
||||
|
@ -23,12 +23,12 @@ lint:
|
|||
disabled:
|
||||
- git-diff-check
|
||||
enabled:
|
||||
- actionlint@1.7.0
|
||||
- checkov@3.2.95
|
||||
- markdownlint@0.40.0
|
||||
- prettier@3.2.5
|
||||
- trivy@0.51.1
|
||||
- trufflehog@3.76.3
|
||||
- actionlint@1.7.1
|
||||
- checkov@3.2.216
|
||||
- markdownlint@0.41.0
|
||||
- prettier@3.3.3
|
||||
- trivy@0.54.0
|
||||
- trufflehog@3.80.3
|
||||
- yamllint@1.35.1
|
||||
actions:
|
||||
enabled:
|
||||
|
@ -38,4 +38,4 @@ actions:
|
|||
- trunk-upgrade-available
|
||||
tools:
|
||||
enabled:
|
||||
- act@0.2.62
|
||||
- act@0.2.64
|
||||
|
|
Loading…
Reference in a new issue