From 6c2bfd9f404f9e9844b3202bdf7bdfc43f7e3bf7 Mon Sep 17 00:00:00 2001 From: Vladimir Ischenko Date: Thu, 21 Nov 2024 18:14:26 +0300 Subject: [PATCH] Fix cosmetic issues in OCI docker --- .github/workflows/ci-oci-docker-install.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-oci-docker-install.yml b/.github/workflows/ci-oci-docker-install.yml index 18ef78e4b4..580b1b2de2 100644 --- a/.github/workflows/ci-oci-docker-install.yml +++ b/.github/workflows/ci-oci-docker-install.yml @@ -28,9 +28,17 @@ jobs: steps: - name: Determine Branch Name run: | - BRANCH_NAME=$([ "${{ github.event_name }}" = "pull_request" ] && echo "${{ github.event.pull_request.head.ref }}" || \ - [ "${{ github.event_name }}" = "repository_dispatch" ] && echo "${{ github.event.client_payload.branch }}" || \ - echo "${GITHUB_REF#refs/heads/}") + case "${{ github.event_name }}" in + "pull_request") + BRANCH_NAME="${{ github.event.pull_request.head.ref }}" + ;; + "repository_dispatch") + BRANCH_NAME="${{ github.event.client_payload.branch }}" + ;; + *) + BRANCH_NAME="${GITHUB_REF#refs/heads/}" + ;; + esac echo "BRANCH_NAME=${BRANCH_NAME:-master}" >> $GITHUB_ENV - name: Free Disk Space