From f811b064cab41a478a9c3116e0424c8c0e3d92a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Mon, 11 Sep 2023 22:14:55 +0200 Subject: [PATCH] ci: use github.ref_name instead of $GITHUB_REF_NAME MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As, regardless of what's mentioned in the documentation, it seems that $GITHUB_REF_NAME is passed down as a literal string. Fixes: #7414 Signed-off-by: Fabiano FidĂȘncio --- .github/workflows/ci-nightly.yaml | 2 +- .github/workflows/payload-after-push.yaml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci-nightly.yaml b/.github/workflows/ci-nightly.yaml index da763e392f..75f5f26675 100644 --- a/.github/workflows/ci-nightly.yaml +++ b/.github/workflows/ci-nightly.yaml @@ -15,5 +15,5 @@ jobs: commit-hash: ${{ github.sha }} pr-number: "nightly" tag: ${{ github.sha }}-nightly - target-branch: $GITHUB_REF_NAME + target-branch: ${{ github.ref_name }} secrets: inherit diff --git a/.github/workflows/payload-after-push.yaml b/.github/workflows/payload-after-push.yaml index d0bf1dd8f7..0f1ab742f4 100644 --- a/.github/workflows/payload-after-push.yaml +++ b/.github/workflows/payload-after-push.yaml @@ -15,7 +15,7 @@ jobs: with: commit-hash: ${{ github.sha }} push-to-registry: yes - target-branch: $GITHUB_REF_NAME + target-branch: ${{ github.ref_name }} secrets: inherit build-assets-arm64: @@ -23,7 +23,7 @@ jobs: with: commit-hash: ${{ github.sha }} push-to-registry: yes - target-branch: $GITHUB_REF_NAME + target-branch: ${{ github.ref_name }} secrets: inherit build-assets-s390x: @@ -31,7 +31,7 @@ jobs: with: commit-hash: ${{ github.sha }} push-to-registry: yes - target-branch: $GITHUB_REF_NAME + target-branch: ${{ github.ref_name }} secrets: inherit publish-kata-deploy-payload-amd64: @@ -42,7 +42,7 @@ jobs: registry: quay.io repo: kata-containers/kata-deploy-ci tag: kata-containers-amd64 - target-branch: $GITHUB_REF_NAME + target-branch: ${{ github.ref_name }} secrets: inherit publish-kata-deploy-payload-arm64: @@ -53,7 +53,7 @@ jobs: registry: quay.io repo: kata-containers/kata-deploy-ci tag: kata-containers-arm64 - target-branch: $GITHUB_REF_NAME + target-branch: ${{ github.ref_name }} secrets: inherit publish-kata-deploy-payload-s390x: @@ -64,7 +64,7 @@ jobs: registry: quay.io repo: kata-containers/kata-deploy-ci tag: kata-containers-s390x - target-branch: $GITHUB_REF_NAME + target-branch: ${{ github.ref_name }} secrets: inherit publish-manifest: