From b9e73abfe07119fc2a6aef6dd1c9f68c43714781 Mon Sep 17 00:00:00 2001 From: Matthew Baggett Date: Sat, 18 May 2024 21:12:05 +0200 Subject: [PATCH] Rework triggers --- .github/workflows/php.check.yml | 5 ----- .github/workflows/trunk.cache.yml | 5 ++++- .github/workflows/trunk.check.yml | 8 ++------ 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/php.check.yml b/.github/workflows/php.check.yml index c5b808e..0d1306f 100644 --- a/.github/workflows/php.check.yml +++ b/.github/workflows/php.check.yml @@ -6,11 +6,6 @@ permissions: on: workflow_call: workflow_dispatch: - push: - branches: - - main - schedule: - - cron: "0 11 * * 2" # 11am Patch Tuesday concurrency: group: ${{ github.head_ref || github.run_id }} diff --git a/.github/workflows/trunk.cache.yml b/.github/workflows/trunk.cache.yml index bed5347..502109a 100644 --- a/.github/workflows/trunk.cache.yml +++ b/.github/workflows/trunk.cache.yml @@ -1,6 +1,8 @@ name: "Quality Control: Trunk Cache" -permissions: read-all +permissions: + contents: read + actions: write on: workflow_call: @@ -10,6 +12,7 @@ on: - main paths: - .trunk/trunk.yaml + - .github/workflows/trunk.cache.yml schedule: - cron: "0 9 * * 1" # 9am Tooling Monday diff --git a/.github/workflows/trunk.check.yml b/.github/workflows/trunk.check.yml index 54331d0..3b4146e 100644 --- a/.github/workflows/trunk.check.yml +++ b/.github/workflows/trunk.check.yml @@ -1,15 +1,11 @@ name: "Quality Control: Trunk Check" -permissions: read-all +permissions: + contents: read on: workflow_call: workflow_dispatch: - push: - branches: - - main - schedule: - - cron: "0 11 * * 2" # 11am Patch Tuesday concurrency: group: ${{ github.head_ref || github.run_id }}