Skip to content

Commit 311c942

Browse files
committed
chore: remove deprecated workflows and update labeler action to v5
Signed-off-by: Salvydas Lukosius <[email protected]>
1 parent 245d6f5 commit 311c942

File tree

5 files changed

+19
-45
lines changed

5 files changed

+19
-45
lines changed

.github/workflows/assign.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
triage:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/labeler@v4
14+
- uses: actions/labeler@v5
1515
with:
1616
repo-token: "${{ secrets.GITHUB_TOKEN }}"
1717
sync-labels: false

.github/workflows/sync-labels.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/workflows/trunk-check.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
11
---
2-
name: "Trunk"
2+
name: Trunk Code Quality
33
on:
44
push:
55
branches: [main]
66
tags: ["v*.*.*"]
77
pull_request:
88
types: [opened, synchronize]
9-
schedule:
10-
- cron: "0 05 * * 5"
119
workflow_dispatch: {}
1210

11+
concurrency:
12+
group: ${{ github.head_ref || github.run_id }}
13+
cancel-in-progress: true
14+
15+
permissions: read-all
16+
1317
jobs:
1418
check:
15-
if: github.event.schedule != '0 05 * * 5'
16-
name: ""
17-
uses: z-shell/.github/.github/workflows/trunk.yml@main
18-
upload:
19-
if: github.event.schedule == '0 05 * * 5'
20-
name: "🆙"
21-
uses: z-shell/.github/.github/workflows/trunk.yml@main
22-
secrets:
23-
trunk-token: ${{ secrets.TRUNK_TOKEN }}
19+
runs-on: ubuntu-latest
20+
permissions:
21+
checks: write # For trunk to post annotations
22+
contents: read # For repo checkout
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
- name: Trunk Code Quality
27+
uses: trunk-io/trunk-action@75699af9e26881e564e9d832ef7dc3af25ec031b

.trunk/trunk.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ plugins:
77
ref: v1.7.0
88
uri: https://github.com/trunk-io/plugins
99
lint:
10+
disabled:
11+
- yamllint
1012
enabled:
1113
1214
1315
14-
1516
1617
1718

0 commit comments

Comments
 (0)