diff --git a/.github/workflows/kind-cats.yaml b/.github/workflows/kind-cats.yaml index f78d3f4..49c0d65 100644 --- a/.github/workflows/kind-cats.yaml +++ b/.github/workflows/kind-cats.yaml @@ -4,6 +4,12 @@ on: schedule: - cron: '0 6 * * *' workflow_dispatch: + inputs: + fresh-validation: + description: 'Use versions of cf-deployment from the develop branch' + type: boolean + required: false + default: false pull_request: branches: - main @@ -49,6 +55,14 @@ jobs: KIND_VERSION: "0.32.0" # renovate: dataSource=github-releases depName=helmfile/helmfile HELMFILE_VERSION: "1.5.3" + - name: Use develop versions of cf-deployment + id: validation + if: steps.check_changes.outputs.skip != 'true' && github.event_name == 'workflow_dispatch' && github.event.inputs.fresh-validation == 'true' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + pip3 install -r scripts/requirements.txt + python3 scripts/sync-cf-deployment-versions.py --ref develop - name: Run make up if: steps.check_changes.outputs.skip != 'true' run: | diff --git a/.github/workflows/kind-smoke.yaml b/.github/workflows/kind-smoke.yaml index e011709..8855cf9 100644 --- a/.github/workflows/kind-smoke.yaml +++ b/.github/workflows/kind-smoke.yaml @@ -11,6 +11,11 @@ on: type: boolean required: false default: true + fresh-validation: + description: 'Use versions of cf-deployment from the develop branch' + type: boolean + required: false + default: false schedule: - cron: '0 7 * * 1' @@ -63,6 +68,14 @@ jobs: KIND_VERSION: "0.32.0" # renovate: dataSource=github-releases depName=helmfile/helmfile HELMFILE_VERSION: "1.5.3" + - name: Use develop versions of cf-deployment + id: pre_validation + if: steps.check_changes.outputs.skip != 'true' && github.event_name == 'workflow_dispatch' && github.event.inputs.fresh-validation == 'true' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + pip3 install -r scripts/requirements.txt + python3 scripts/sync-cf-deployment-versions.py --ref develop - name: Run make up (default) if: steps.check_changes.outputs.skip != 'true' && github.event_name == 'pull_request' run: make up