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


The following commit(s) were added to refs/heads/main by this push:
     new ecd847f  fix(ci): attempt for a single nightly release
ecd847f is described below

commit ecd847f9e71d9ec1db6776f8a72398006da14bde
Author: Pasquale Congiusti <pasquale.congiu...@gmail.com>
AuthorDate: Mon Mar 14 16:14:08 2022 +0100

    fix(ci): attempt for a single nightly release
    
    Closes #3107
---
 .github/workflows/nightly-tag.yaml | 39 --------------------------------------
 .github/workflows/release.yml      | 18 +++++++++---------
 2 files changed, 9 insertions(+), 48 deletions(-)

diff --git a/.github/workflows/nightly-tag.yaml 
b/.github/workflows/nightly-tag.yaml
deleted file mode 100644
index dd6891e..0000000
--- a/.github/workflows/nightly-tag.yaml
+++ /dev/null
@@ -1,39 +0,0 @@
-# ---------------------------------------------------------------------------
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# ---------------------------------------------------------------------------
-
-name: "Nightly"
-
-on:
-  schedule:
-  - cron: "59 23 * * *"
-
-jobs:
-  nightly:
-    runs-on: ubuntu-20.04
-    steps:
-    - name: Check out code
-      uses: actions/checkout@v2
-    - name: Get tag
-      shell: bash
-      run: |
-        V=$(make get-version | sed s/-SNAPSHOT/-nightly.$(date +%Y%m%d%H%M)/)
-        echo "TAG=$V" >> $GITHUB_ENV
-    - name: Push tag
-      uses: rickstaa/action-create-tag@v1
-      with:
-        tag: ${{ env.TAG }}
-        
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 7c6bf61..19570fe 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -18,9 +18,8 @@
 name: release
 
 on:
-  push:
-    tags:
-      - '*nightly*'
+  schedule:
+  - cron: "50 23 * * *"
 
 jobs:
   release:
@@ -43,16 +42,17 @@ jobs:
         key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
         restore-keys: |
           ${{ runner.os }}-go-
-
+    - name: Get nightly version
+      shell: bash
+      run: |
+        V=$(make get-version | sed s/-SNAPSHOT/-nightly/)
+        echo "VERSION=$V" >> $GITHUB_ENV
     - name: Global Env
       env:
         TEST_DOCKER_HUB_USERNAME: ${{ secrets.TEST_DOCKER_HUB_USERNAME }}
         TEST_DOCKER_HUB_PASSWORD: ${{ secrets.TEST_DOCKER_HUB_PASSWORD }}
       run: |
-        TAG=${GITHUB_REF##*/}
-        VERSION=${TAG:1}
-        echo "Using VERSION=$VERSION"
-        echo "VERSION=$VERSION" >> $GITHUB_ENV
+        echo "Using VERSION=${{ env.VERSION }}"
 
         IMAGE_NAME=docker.io/${TEST_DOCKER_HUB_USERNAME:-testcamelk}/camel-k
         echo "Using IMAGE_NAME=$IMAGE_NAME"
@@ -84,7 +84,7 @@ jobs:
         tag_name: ${{ env.VERSION }}
         release_name: Release ${{ env.VERSION }}
         body: |
-          Apache Camel K nightly build for testing (unstable).
+          Apache Camel K ${{ env.VERSION }} build for testing (unstable).
 
           To test it, download the client for your OS and run:
 

Reply via email to