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