diff --git a/.github/workflows/trunk-check.yml b/.github/workflows/trunk-check.yml new file mode 100644 index 0000000..77ab29c --- /dev/null +++ b/.github/workflows/trunk-check.yml @@ -0,0 +1,30 @@ +--- +name: Trunk Code Quality + +on: + push: + branches: [main] + tags: ["v*.*.*"] + pull_request: + 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: + name: Trunk Code Quality + permissions: + actions: read + checks: write + contents: read + uses: z-shell/.github/.github/workflows/trunk.yml@main + with: + arguments: --no-progress diff --git a/.github/workflows/trunk_check.yml b/.github/workflows/trunk_check.yml deleted file mode 100644 index 67eeadd..0000000 --- a/.github/workflows/trunk_check.yml +++ /dev/null @@ -1,23 +0,0 @@ ---- -name: "⭕ Trunk" -on: - push: - branches: [main] - tags: ["v*.*.*"] - pull_request: - types: [opened, synchronize] - schedule: - - cron: "0 07 * * 5" - workflow_dispatch: {} - -jobs: - check: - if: github.event.schedule != '0 07 * * 5' - name: "⚡" - 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 }}