From 7e2f47c7145dd3035b0fc9eea0d5c6396b72bc20 Mon Sep 17 00:00:00 2001 From: Mario Manno Date: Fri, 12 Jan 2024 17:46:52 +0100 Subject: [PATCH] Remove old versions from schedule, trigger for release branch PRs --- .github/workflows/ci-0.5.yml | 4 ++-- .github/workflows/ci-0.6.yml | 4 ++-- .github/workflows/ci-0.7.yml | 42 ------------------------------------ 3 files changed, 4 insertions(+), 46 deletions(-) delete mode 100644 .github/workflows/ci-0.7.yml diff --git a/.github/workflows/ci-0.5.yml b/.github/workflows/ci-0.5.yml index ab96748..8e67b00 100644 --- a/.github/workflows/ci-0.5.yml +++ b/.github/workflows/ci-0.5.yml @@ -1,9 +1,9 @@ name: CI v0.5 on: - schedule: - - cron: '0 5 * * *' pull_request: + branches: + - 'releases/v0.5' workflow_dispatch: jobs: diff --git a/.github/workflows/ci-0.6.yml b/.github/workflows/ci-0.6.yml index 49a2a87..034fe48 100644 --- a/.github/workflows/ci-0.6.yml +++ b/.github/workflows/ci-0.6.yml @@ -1,9 +1,9 @@ name: CI v0.6 on: - schedule: - - cron: '0 5 * * *' pull_request: + branches: + - 'releases/v0.6' workflow_dispatch: jobs: diff --git a/.github/workflows/ci-0.7.yml b/.github/workflows/ci-0.7.yml deleted file mode 100644 index 0110cec..0000000 --- a/.github/workflows/ci-0.7.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: CI v0.7 - -on: - schedule: - - cron: '0 5 * * *' - pull_request: - workflow_dispatch: - -jobs: - test: - runs-on: ubuntu-latest - - strategy: - fail-fast: false - matrix: - fleet_version: - - "v0.7.0" - - steps: - - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - ref: "release/v0.7" - - - uses: actions/cache@v3 - id: fleet-cli-cache - with: - path: /home/runner/.local/bin - key: ${{ runner.os }}-fleet-cli-${{ matrix.fleet_version }} - - - name: Download CLI - if: steps.fleet-cli-cache.outputs.cache-hit != 'true' - run: | - mkdir -p /home/runner/.local/bin - wget -nv "https://github.com/rancher/fleet/releases/download/${{ matrix.fleet_version }}/fleet-linux-amd64" - mv fleet-linux-amd64 /home/runner/.local/bin/fleet - chmod +x /home/runner/.local/bin/fleet - - - name: Test - run: | - tests/test.sh