From 4ca34895ca8dc38382927b2ddab873b84193cd4b Mon Sep 17 00:00:00 2001 From: Gavin Didrichsen Date: Wed, 23 Oct 2024 15:12:27 +0100 Subject: [PATCH] Try skipping instead Signed-off-by: Gavin Didrichsen --- .github/workflows/nightly.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 1f89f33bc..3be901185 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -16,22 +16,25 @@ jobs: ruby_version: - "2.7" - "3.2" - exclude: - - os: "windows-2019" - ruby_version: "3.2" include: - puppet_gem_version: "~> 7.0" ruby_version: "2.7" - puppet_gem_version: "~> 8.0" ruby_version: "3.2" name: "acceptance (ruby ${{ matrix.ruby_version }} | ${{ matrix.os }})" - uses: "puppetlabs/cat-github-actions/.github/workflows/gem_acceptance.yml@main" - secrets: "inherit" - with: - ruby_version: ${{ matrix.ruby_version }} - puppet_version: ${{ matrix.puppet_gem_version }} - rake_task: 'acceptance:local' - runs_on: ${{ matrix.os }} + runs-on: ${{ matrix.os }} + steps: + - name: Check if job should be skipped + if: matrix.ruby_version == '3.2' && matrix.os == 'windows-2019' + run: echo "Skipping job for Ruby 3.2 on Windows 2019" && exit 0 + + - name: Run acceptance tests + uses: puppetlabs/cat-github-actions/.github/workflows/gem_acceptance.yml@main + with: + ruby_version: ${{ matrix.ruby_version }} + puppet_version: ${{ matrix.puppet_gem_version }} + rake_task: 'acceptance:local' + secrets: inherit on-failure-workflow-restarter-proxy: # (1) run this job after the "acceptance" job and...