From e83b11e9078ab78de1bfd15aabcfcd046ac8d80e Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Mon, 6 Feb 2023 15:35:26 +0900 Subject: [PATCH] Updated RHEL action for trunk --- .github/workflows/images_build_rhel.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/images_build_rhel.yml b/.github/workflows/images_build_rhel.yml index c9c6bf2fc..658a4f3fe 100644 --- a/.github/workflows/images_build_rhel.yml +++ b/.github/workflows/images_build_rhel.yml @@ -9,6 +9,7 @@ on: - '5.0' - '6.0' - '6.2' + - 'trunk' paths: - 'Dockerfiles/*/rhel/*' - '.github/workflows/images_build_rhel.yml' @@ -24,6 +25,7 @@ env: REGISTRY_NAMESPACE: "redhat-isv-containers" PFLT_LOGLEVEL: "warn" PFLT_ARTIFACTS: "/tmp/artifacts" + TRUNK_BRANCH: "6.4" jobs: init_build: @@ -52,12 +54,8 @@ jobs: github_ref=${github_ref##*/} - if [[ "$github_ref" == "${{ env.LATEST_BRANCH }}" ]]; then - result=true - fi - echo "is_default_branch=$result" >> $GITHUB_OUTPUT - echo "current_branch=$github_ref" >> $GITHUB_OUTPUT + echo "current_branch=${{ env.TRUNK_BRANCH }}" >> $GITHUB_OUTPUT echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT