From f5514b419a2f077365ee93a302f4aacbff471827 Mon Sep 17 00:00:00 2001 From: SorsOps <80043879+sorsOps@users.noreply.github.com> Date: Wed, 19 Jun 2024 21:02:16 +0200 Subject: [PATCH] Use a raw tag --- .github/workflows/pr.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index f93163f2a..538a3813b 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -35,13 +35,22 @@ jobs: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.PAT_TOKEN }} + - name: Get current branch name + id: get_branch + run: echo "branch_name=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV + + - name: Replace / with - in branch name + id: replace_slash + run: | + SANITIZED_BRANCH_NAME=$(echo "${{ env.branch_name }}" | tr '/' '-') + echo "sanitized_branch_name=${SANITIZED_BRANCH_NAME}" >> $GITHUB_ENV - name: Docker meta id: meta uses: docker/metadata-action@v5 with: tags: | - type=ref,enable=true,priority=600,prefix=${{matrix.type}}-,suffix=,event=branch + type=raw,enable=true,prefix=${{matrix.type}}-,value=${{ env.sanitized_branch_name }} images: | ghcr.io/tokens-studio/tokens-studio-for-penpot - name: prebuild