From d21a1b66a2feb9bcbac91efff8f6fe5151908e46 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Fri, 29 Sep 2023 09:58:08 +0200 Subject: [PATCH] Testing feat pipeline --- .github/workflows/cooker-selfhosted.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index 94104313..380f6f6c 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -102,18 +102,18 @@ jobs: id: commits continue-on-error: true - # what was this? - # - name: "Get tag name (cooker only)" - # uses: ncipollo/release-action@v1 - # id: tag + - name: Get branch name + id: branch_name + run: echo "BRANCH_NAME=$(echo $GITHUB_REF | sed 's|refs/heads/||')" >> $GITHUB_ENV - - name: "Set tag name (cooker only)" + - name: "Set TAG_NAME based on branch name (cooker only)" run: | - if $ { { startsWith(steps.tag.outputs.tag, 'feat/') }}; then - echo "TAG_NAME=feature:$ { { replace(steps.tag.outputs.tag, 'feat/', '') }}" >> $GITHUB_ENV + if [[ $BRANCH_NAME == 'feat/'* ]]; then + echo "TAG_NAME=feature:${BRANCH_NAME/feat\//}" >> $GITHUB_ENV else - echo "TAG_NAME=$ { { steps.tag.outputs.tag }}" >> $GITHUB_ENV + echo "TAG_NAME=${BRANCH_NAME}" >> $GITHUB_ENV fi + shell: /usr/bin/bash -e {0} - name: "Set makeLatest (cooker only)" run: |