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 2022/12/16 09:55:46 UTC

[camel-k] 03/03: fix(ci): actions requires checking out code

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 8e0e5a69e07a31fa688cd903d763bbc87e439ccd
Author: Pasquale Congiusti <pa...@gmail.com>
AuthorDate: Fri Dec 16 10:40:59 2022 +0100

    fix(ci): actions requires checking out code
---
 .github/actions/automatic-updates/action.yml |  6 ------
 .github/actions/release-nightly/action.yml   |  9 ---------
 .github/workflows/automatic-updates.yml      | 18 ++++++++++++++++++
 .github/workflows/release.yml                | 21 ++++++++++++++++++---
 4 files changed, 36 insertions(+), 18 deletions(-)

diff --git a/.github/actions/automatic-updates/action.yml b/.github/actions/automatic-updates/action.yml
index 126a90984..9cc645919 100644
--- a/.github/actions/automatic-updates/action.yml
+++ b/.github/actions/automatic-updates/action.yml
@@ -24,12 +24,6 @@ inputs:
 runs:
   using: "composite"
   steps:
-    - name: "Checkout code"
-      uses: actions/checkout@v2
-      with:
-        ref: ${{ inputs.branch-ref }}
-        persist-credentials: false
-        submodules: recursive
     - name: Generate changelog
       uses: ./.github/actions/changelog
       with:
diff --git a/.github/actions/release-nightly/action.yml b/.github/actions/release-nightly/action.yml
index cf78042ef..f8a7e0026 100644
--- a/.github/actions/release-nightly/action.yml
+++ b/.github/actions/release-nightly/action.yml
@@ -17,9 +17,6 @@ name: release-nightly
 description: 'action used to release nightly'
 
 inputs:
-  branch-ref:
-    required: true
-    type: string
   goVersion:
     required: true
     type: string
@@ -42,12 +39,6 @@ runs:
   using: "composite"
 
   steps:
-    - name: "Checkout code"
-      uses: actions/checkout@v2
-      with:
-        ref: ${{ inputs.branch-ref }}
-        persist-credentials: false
-        submodules: recursive
     - name: Set up JDK ${{ inputs.javaVersion }}
       uses: actions/setup-java@v2
       with:
diff --git a/.github/workflows/automatic-updates.yml b/.github/workflows/automatic-updates.yml
index 49fe5bc1e..1e703eadb 100644
--- a/.github/workflows/automatic-updates.yml
+++ b/.github/workflows/automatic-updates.yml
@@ -28,6 +28,12 @@ jobs:
     runs-on: ubuntu-20.04
     name: Generate changelog for main branch
     steps:
+    - name: "Checkout code"
+      uses: actions/checkout@v2
+      with:
+        ref: main
+        persist-credentials: false
+        submodules: recursive
     - name: Automatic updates on main
       uses: ./.github/actions/automatic-updates
       with:
@@ -37,6 +43,12 @@ jobs:
     if: github.repository == 'apache/camel-k'
     runs-on: ubuntu-20.04
     steps:
+    - name: "Checkout code"
+      uses: actions/checkout@v2
+      with:
+        ref: release-1.10.x
+        persist-credentials: false
+        submodules: recursive
     - name: Automatic updates on release-1.10.x
       uses: ./.github/actions/automatic-updates
       with:
@@ -46,6 +58,12 @@ jobs:
     if: github.repository == 'apache/camel-k'
     runs-on: ubuntu-20.04
     steps:
+    - name: "Checkout code"
+      uses: actions/checkout@v2
+      with:
+        ref: release-1.11.x
+        persist-credentials: false
+        submodules: recursive
     - name: Automatic updates on release-1.11.x
       uses: ./.github/actions/automatic-updates
       with:
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 8e9db0a54..4631d7a52 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -29,10 +29,15 @@ jobs:
     if: github.repository == 'apache/camel-k'
     runs-on: ubuntu-20.04
     steps:
+    - name: "Checkout code"
+      uses: actions/checkout@v2
+      with:
+        ref: main
+        persist-credentials: false
+        submodules: recursive
     - name: Release main nightly
       uses: ./.github/actions/release-nightly
       with:
-        branch-ref: "main"
         goVersion: "1.17.x"
         javaVersion: "11"
         secretE2ECluster: ${{ secrets.E2E_CLUSTER_CONFIG }}
@@ -45,10 +50,15 @@ jobs:
     if: github.repository == 'apache/camel-k'
     runs-on: ubuntu-20.04
     steps:
+    - name: "Checkout code"
+      uses: actions/checkout@v2
+      with:
+        ref: release-1.10.x
+        persist-credentials: false
+        submodules: recursive
     - name: release-1.10.x nightly
       uses: ./.github/actions/release-nightly
       with:
-        branch-ref: "release-1.10.x"
         goVersion: "1.17.x"
         javaVersion: "11"
         secretE2ECluster: ${{ secrets.E2E_CLUSTER_CONFIG }}
@@ -61,10 +71,15 @@ jobs:
     if: github.repository == 'apache/camel-k'
     runs-on: ubuntu-20.04
     steps:
+    - name: "Checkout code"
+      uses: actions/checkout@v2
+      with:
+        ref: release-1.11.x
+        persist-credentials: false
+        submodules: recursive
     - name: release-1.11.x nightly
       uses: ./.github/actions/release-nightly
       with:
-        branch-ref: "release-1.11.x"
         goVersion: "1.17.x"
         javaVersion: "11"
         secretE2ECluster: ${{ secrets.E2E_CLUSTER_CONFIG }}