diff --git a/.github/workflows/trunk-check.yml b/.github/workflows/trunk-check.yml index 1df25f6..77ab29c 100644 --- a/.github/workflows/trunk-check.yml +++ b/.github/workflows/trunk-check.yml @@ -1,24 +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 07 * * 5" workflow_dispatch: {} +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: check: - if: github.event.schedule != '0 07 * * 5' - name: "⚡" + name: Trunk Code Quality + permissions: + actions: read + checks: write + contents: read uses: z-shell/.github/.github/workflows/trunk.yml@main -# upload: -# if: github.event.schedule == '0 07 * * 5' -# name: "🆙" -# uses: z-shell/.github/.github/workflows/trunk.yml@main -# secrets: -# trunk-token: ${{ secrets.TRUNK_TOKEN }} + with: + arguments: --no-progress