From 3615d17d70b90519eba9cf32e4faf388879b90bc Mon Sep 17 00:00:00 2001 From: Salvydas Lukosius Date: Tue, 19 May 2026 04:04:58 +0100 Subject: [PATCH] ci(trunk): refresh caller workflow --- .github/workflows/labeler.yml | 17 ----------------- .github/workflows/sync-labels.yml | 12 ------------ .github/workflows/trunk-check.yml | 29 ++++++++++++++++++----------- 3 files changed, 18 insertions(+), 40 deletions(-) delete mode 100644 .github/workflows/labeler.yml delete mode 100644 .github/workflows/sync-labels.yml diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml deleted file mode 100644 index 33e118e..0000000 --- a/.github/workflows/labeler.yml +++ /dev/null @@ -1,17 +0,0 @@ ---- -name: 🔖 Pull Request Labeler -on: - pull_request_target: - -permissions: - contents: read - pull-requests: write - -jobs: - triage: - runs-on: ubuntu-latest - steps: - - uses: actions/labeler@v4 - with: - repo-token: "${{ secrets.GH_PAT }}" - sync-labels: false diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml deleted file mode 100644 index b9b9843..0000000 --- a/.github/workflows/sync-labels.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: "♻️ Sync Labels" - -on: - schedule: - - cron: "22 2 * * 2" - workflow_dispatch: - -jobs: - labels: - name: "♻️ Sync labels" - uses: z-shell/.github/.github/workflows/sync-labels.yml@main diff --git a/.github/workflows/trunk-check.yml b/.github/workflows/trunk-check.yml index 5d79f55..3fbfa78 100644 --- a/.github/workflows/trunk-check.yml +++ b/.github/workflows/trunk-check.yml @@ -1,23 +1,30 @@ --- -name: "⭕ Trunk" +name: Trunk Code Quality + on: push: branches: [main] tags: ["v*.*.*"] pull_request: - types: [opened, synchronize] + types: [opened, synchronize, reopened] schedule: - cron: "0 05 * * 5" - workflow_dispatch: + workflow_dispatch: {} + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: check: - if: github.event.schedule != '0 05 * * 5' - name: "⚡" - uses: z-shell/.github/.github/workflows/trunk.yml@main - upload: - if: github.event.schedule == '0 05 * * 5' - name: "🆙" + name: Trunk Code Quality + permissions: + actions: read + checks: write + contents: read uses: z-shell/.github/.github/workflows/trunk.yml@main - secrets: - trunk-token: ${{ secrets.TRUNK_TOKEN }} + with: + arguments: --no-progress