From 216246c42d7b6189e04acf91a09523dba6d3c069 Mon Sep 17 00:00:00 2001 From: Konstantinos Konstantinidis Date: Mon, 11 Nov 2024 12:48:31 +0000 Subject: [PATCH] Switch platform workflows from ubuntu-latest to ubuntu-24.04 --- .github/workflows/platform-cd.yaml | 3 +-- .github/workflows/platform-ci.yaml | 4 +--- .../workflows/platform-environment-feature-matrix.yaml | 2 +- .github/workflows/platform-environment-matrix.yaml | 8 ++++---- .github/workflows/platform-execute-command.yaml | 2 +- .github/workflows/platform-release.yaml | 4 ++-- 6 files changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/platform-cd.yaml b/.github/workflows/platform-cd.yaml index 805fb2f..a50fa9b 100644 --- a/.github/workflows/platform-cd.yaml +++ b/.github/workflows/platform-cd.yaml @@ -24,7 +24,7 @@ on: jobs: changes: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 permissions: contents: read id-token: write @@ -112,4 +112,3 @@ jobs: environment: ${{ inputs.environment }} platform: ${{ inputs.platform }} release: ${{ inputs.release }} - diff --git a/.github/workflows/platform-ci.yaml b/.github/workflows/platform-ci.yaml index 6ad2ed6..36c9875 100644 --- a/.github/workflows/platform-ci.yaml +++ b/.github/workflows/platform-ci.yaml @@ -24,7 +24,7 @@ on: jobs: changes: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 permissions: contents: read id-token: write @@ -111,5 +111,3 @@ jobs: environment: ${{ inputs.environment }} platform: ${{ inputs.platform }} release: ${{ inputs.release }} - - diff --git a/.github/workflows/platform-environment-feature-matrix.yaml b/.github/workflows/platform-environment-feature-matrix.yaml index c0c91a2..3e44a8b 100644 --- a/.github/workflows/platform-environment-feature-matrix.yaml +++ b/.github/workflows/platform-environment-feature-matrix.yaml @@ -13,7 +13,7 @@ on: jobs: generate: name: generate - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 outputs: matrix: ${{ steps.generate-matrix.outputs.matrix }} steps: diff --git a/.github/workflows/platform-environment-matrix.yaml b/.github/workflows/platform-environment-matrix.yaml index 558c342..b322cfb 100644 --- a/.github/workflows/platform-environment-matrix.yaml +++ b/.github/workflows/platform-environment-matrix.yaml @@ -22,7 +22,7 @@ on: jobs: generate: name: generate - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 outputs: matrix: ${{ steps.generate-matrix.outputs.matrix }} steps: @@ -34,7 +34,7 @@ jobs: name: Generate Matrix run: | # generate matrix - YAML_FILE=environments/environments.yaml + YAML_FILE=environments/environments.yaml include_all="${{ inputs.include_all }}" environment="${{ inputs.environment }}" include_release="${{ inputs.include_release }}" @@ -65,8 +65,8 @@ jobs: allowed=true elif [ ! -e "${environment}" ] && echo "$env" | grep -wq "^${environment}$"; then allowed=true - fi - + fi + if [ "${allowed}" == true ]; then if [ "${include_release}" == true ]; then e+="{\"environment\":\"$(yq .environment "${f}")\",\"platform\":\"$(yq .platform.vendor "${f}")\",\"release\":\"$(yq .release "${f}")\"}," diff --git a/.github/workflows/platform-execute-command.yaml b/.github/workflows/platform-execute-command.yaml index 8f7f240..6ff3ec2 100644 --- a/.github/workflows/platform-execute-command.yaml +++ b/.github/workflows/platform-execute-command.yaml @@ -32,7 +32,7 @@ on: jobs: developer-platform: name: ${{ inputs.feature }} - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 concurrency: ${{ inputs.environment }}-${{ github.ref }} environment: ${{ inputs.environment }} diff --git a/.github/workflows/platform-release.yaml b/.github/workflows/platform-release.yaml index 0758db6..803ff93 100644 --- a/.github/workflows/platform-release.yaml +++ b/.github/workflows/platform-release.yaml @@ -26,7 +26,7 @@ on: jobs: publish-pkg: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 if: github.ref_type == 'tag' permissions: contents: write @@ -42,7 +42,7 @@ jobs: git push origin "pkg/${{ github.ref_name }}" generate: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 permissions: contents: read