You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2023/10/23 11:22:47 UTC

[camel-k] 02/02: chore(ci): Use project defined golang version in ci

This is an automated email from the ASF dual-hosted git repository.

pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit 63d4fc3b021e022fccd88a51eac9ca59f8cc0128
Author: Gaelle Fournier <ga...@gmail.com>
AuthorDate: Mon Oct 23 09:31:05 2023 +0200

    chore(ci): Use project defined golang version in ci
---
 .github/actions/automatic-updates/action.yml    | 6 +++---
 .github/actions/kamel-prepare-env/action.yml    | 2 +-
 .github/actions/release-nightly/action.yml      | 6 +++---
 .github/workflows/coverage.yml                  | 2 +-
 .github/workflows/nightly-automatic-updates.yml | 2 +-
 .github/workflows/nightly-release.yml           | 2 +-
 .github/workflows/security.yaml                 | 2 +-
 .github/workflows/validate.yml                  | 2 +-
 8 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/.github/actions/automatic-updates/action.yml b/.github/actions/automatic-updates/action.yml
index 97d1b4976..ef2e81e4c 100644
--- a/.github/actions/automatic-updates/action.yml
+++ b/.github/actions/automatic-updates/action.yml
@@ -24,17 +24,17 @@ inputs:
     type: string
   secretGithubToken:
     required: true
-  goVersion:
+  goVersionFile:
     required: true
     type: string
 
 runs:
   using: "composite"
   steps:
-    - name: Install Go ${{ inputs.goVersion }}
+    - name: Install Go ${{ inputs.goVersionFile }}
       uses: actions/setup-go@v4
       with:
-        go-version: ${{ inputs.goVersion }}
+        go-version-file: ${{ inputs.goVersionFile }}
         check-latest: true
     - name: Generate changelog
       uses: ./.github/actions/changelog
diff --git a/.github/actions/kamel-prepare-env/action.yml b/.github/actions/kamel-prepare-env/action.yml
index 298e5b51d..0ebb9a1d1 100644
--- a/.github/actions/kamel-prepare-env/action.yml
+++ b/.github/actions/kamel-prepare-env/action.yml
@@ -74,7 +74,7 @@ runs:
       uses: actions/setup-go@v4
       if: ${{ env.KAMEL_PREPARE_ENV != 'true' }}
       with:
-        go-version: 1.20.x
+        go-version-file: 'go.mod'
         check-latest: true
 
     - name: (Re-)install kustomize
diff --git a/.github/actions/release-nightly/action.yml b/.github/actions/release-nightly/action.yml
index 2b8b84ecc..7977626d9 100644
--- a/.github/actions/release-nightly/action.yml
+++ b/.github/actions/release-nightly/action.yml
@@ -19,7 +19,7 @@ name: release-nightly
 description: 'action used to release nightly'
 
 inputs:
-  goVersion:
+  goVersionFile:
     required: true
     type: string
   javaVersion:
@@ -46,10 +46,10 @@ runs:
       with:
         java-version: ${{ inputs.javaVersion }}
         distribution: "temurin"
-    - name: Install Go ${{ inputs.goVersion }}
+    - name: Install Go ${{ inputs.goVersionFile }}
       uses: actions/setup-go@v4
       with:
-        go-version: ${{ inputs.goVersion }}
+        go-version-file: ${{ inputs.goVersionFile }}
         check-latest: true
     - name: Common smoke tests
       uses: ./.github/actions/e2e-common
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index 891eba2a6..30f0a953a 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -35,7 +35,7 @@ jobs:
       - name: Setup go
         uses: actions/setup-go@v4
         with:
-          go-version: '1.20'
+          go-version-file: 'go.mod'
           check-latest: true
 
       - name: Prepare repo configuration
diff --git a/.github/workflows/nightly-automatic-updates.yml b/.github/workflows/nightly-automatic-updates.yml
index dee92ce9d..428b6d6a0 100644
--- a/.github/workflows/nightly-automatic-updates.yml
+++ b/.github/workflows/nightly-automatic-updates.yml
@@ -48,4 +48,4 @@ jobs:
       with:
         branch-ref: ${{ matrix.ref-branch }}
         secretGithubToken: ${{ secrets.GITHUB_TOKEN }}
-        goVersion: "1.20.x"
+        goVersionFile: "go.mod"
diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml
index 7cbede836..9a58336ad 100644
--- a/.github/workflows/nightly-release.yml
+++ b/.github/workflows/nightly-release.yml
@@ -49,7 +49,7 @@ jobs:
     - name: Release nightly ${{ matrix.ref-branch }} branch
       uses: ./.github/actions/release-nightly
       with:
-        goVersion: "1.20.x"
+        goVersionFile: "go.mod"
         javaVersion: "17"
         secretE2ECluster: ${{ secrets.E2E_CLUSTER_CONFIG }}
         secretE2EKube: ${{ secrets.E2E_KUBE_CONFIG }}
diff --git a/.github/workflows/security.yaml b/.github/workflows/security.yaml
index 4e0eb8e86..5999385d1 100644
--- a/.github/workflows/security.yaml
+++ b/.github/workflows/security.yaml
@@ -49,7 +49,7 @@ jobs:
       - name: Install Go
         uses: actions/setup-go@v4
         with:
-          go-version: 1.20.x
+          go-version-file: 'go.mod'
           check-latest: true
       - name: Install govulncheck
         run: go install golang.org/x/vuln/cmd/govulncheck@latest
diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml
index e39155f2e..e28fedd8a 100644
--- a/.github/workflows/validate.yml
+++ b/.github/workflows/validate.yml
@@ -44,7 +44,7 @@ jobs:
       - name: Install Go
         uses: actions/setup-go@v4
         with:
-          go-version: 1.20.x
+          go-version-file: 'go.mod'
           check-latest: true
       - name: golangci-lint
         uses: golangci/golangci-lint-action@v3