From 72773ca88ab3c0b920cfd5d1da5cc86e55d2ea05 Mon Sep 17 00:00:00 2001 From: woksin Date: Sun, 25 Oct 2026 09:18:39 +0100 Subject: [PATCH] Skip scheduled runs that already succeeded on this commit Gate the scheduled work on Cratis/Workflows skip-if-already-ran so a run is skipped when the same workflow already succeeded on this commit. See Cratis/Workflows#205. --- .github/workflows/canonical-samples.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/canonical-samples.yml b/.github/workflows/canonical-samples.yml index 9d1907d..c0350e5 100644 --- a/.github/workflows/canonical-samples.yml +++ b/.github/workflows/canonical-samples.yml @@ -25,7 +25,20 @@ env: DOTNET_VERSION: 10.0.x jobs: + already-ran: + runs-on: ubuntu-latest + timeout-minutes: 5 + permissions: + actions: read + outputs: + skip: ${{ steps.gate.outputs.skip }} + steps: + - id: gate + uses: Cratis/Workflows/.github/actions/skip-if-already-ran@main + verify: + needs: already-ran + if: needs.already-ran.outputs.skip != 'true' runs-on: ubuntu-latest timeout-minutes: 15 steps: