Skip to content

Commit 3e214a9

Browse files
authored
ci(trunk): use organization reusable workflow (#764)
* ci(trunk): use organization reusable workflow * ci(trunk): pin repaired reusable workflow * ci(trunk): pin caller concurrency repair --------- Co-authored-by: Salvydas Lukosius <ss-o@users.noreply.github.com>
1 parent 96a3922 commit 3e214a9

1 file changed

Lines changed: 12 additions & 23 deletions

File tree

.github/workflows/trunk-check.yml

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,22 @@ on:
1010
workflow_dispatch: {}
1111

1212
permissions:
13-
checks: write
1413
contents: read
15-
issues: write
16-
pull-requests: write
1714

1815
concurrency:
19-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
16+
group: ${{ github.workflow }}-${{ github.ref }}
2017
cancel-in-progress: true
2118

2219
jobs:
23-
trunk_check:
20+
check:
2421
name: Trunk Code Quality
25-
runs-on: ubuntu-latest
26-
steps:
27-
- name: Checkout
28-
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
29-
with:
30-
fetch-depth: 0
31-
32-
- name: Setup dependencies
33-
uses: ./.trunk/setup-ci
34-
35-
- name: Trunk Check
36-
uses: trunk-io/trunk-action@75699af9e26881e564e9d832ef7dc3af25ec031b # v1.2.4
37-
with:
38-
cache: false
39-
# Run full link audit on schedule/dispatch, otherwise run standard incremental checks
40-
arguments: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && 'run lychee-audit' || '' }}
41-
env:
42-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
permissions:
23+
actions: read
24+
checks: write
25+
contents: read
26+
uses: z-shell/.github/.github/workflows/trunk.yml@df7c51baaa966337fe5e8d15d82bc9c38486a227 # main
27+
with:
28+
cache: false
29+
setup-deps: true
30+
# Run full link audit on schedule/dispatch, otherwise run standard incremental checks.
31+
arguments: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && 'run lychee-audit' || '' }}

0 commit comments

Comments
 (0)