You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2020/03/26 09:54:17 UTC

[camel-k] branch master updated: Fix #1365: Set GITHUB_REF for cron-based run

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

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


The following commit(s) were added to refs/heads/master by this push:
     new c3eb9b3  Fix #1365: Set GITHUB_REF for cron-based run
c3eb9b3 is described below

commit c3eb9b37d18942a159d90fb6830d79ce43fff369
Author: Nicola Ferraro <ni...@gmail.com>
AuthorDate: Thu Mar 26 10:53:25 2020 +0100

    Fix #1365: Set GITHUB_REF for cron-based run
---
 .github/workflows/release.yml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index ba11139..f98fbe2 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -62,6 +62,11 @@ jobs:
         echo "Using MAVEN_REPOSITORY=$MAVEN_REPOSITORY"
         echo "::set-env name=MAVEN_REPOSITORY::$MAVEN_REPOSITORY"
 
+        # GITHUB_REF is not automatically set for cron-based actions
+        GITHUB_REF=refs/heads/master
+        echo "Using GITHUB_REF=$GITHUB_REF"
+        echo "::set-env name=GITHUB_REF::$GITHUB_REF"
+
         docker login -u $TEST_DOCKER_HUB_USERNAME -p $TEST_DOCKER_HUB_PASSWORD
 
     - name: Codegen