From e0807ddaaae741594dd11b5451e1c3450188b74a Mon Sep 17 00:00:00 2001 From: Rob Arnold <326113+robarnold@users.noreply.github.com> Date: Sun, 26 May 2024 12:52:29 -0700 Subject: [PATCH] Strip the v prefix from tagged releases (#161) --- .github/workflows/kairos-ubuntu-22-lts.yml | 2 +- .github/workflows/universal-silabs-flasher.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/kairos-ubuntu-22-lts.yml b/.github/workflows/kairos-ubuntu-22-lts.yml index 765a428..236c17d 100644 --- a/.github/workflows/kairos-ubuntu-22-lts.yml +++ b/.github/workflows/kairos-ubuntu-22-lts.yml @@ -52,7 +52,7 @@ jobs: run: earthly ./images/kairos-ubuntu-22-lts/+image - id: tags - run: echo "TAG=$BRANCH" | tr / _ >> "$GITHUB_ENV" + run: echo "TAG=$BRANCH" | sed -e 's/^v//' -e 's/\//_/' >> "$GITHUB_ENV" env: BRANCH: ${{ github.ref_type == 'tag' && github.ref_name || github.event_name != 'pull_request' && 'latest' || format('pr-{0}', github.head_ref) }} diff --git a/.github/workflows/universal-silabs-flasher.yml b/.github/workflows/universal-silabs-flasher.yml index 0113a86..104092e 100644 --- a/.github/workflows/universal-silabs-flasher.yml +++ b/.github/workflows/universal-silabs-flasher.yml @@ -41,7 +41,7 @@ jobs: run: docker login --username "${{ github.actor }}" --password "${{ secrets.GITHUB_TOKEN }}" ghcr.io - id: tags - run: echo "TAG=$BRANCH" | tr / _ >> "$GITHUB_ENV" + run: echo "TAG=$BRANCH" | sed -e 's/^v//' -e 's/\//_/' >> "$GITHUB_ENV" env: BRANCH: ${{ github.ref_type == 'tag' && github.ref_name || github.event_name != 'pull_request' && 'latest' || format('pr-{0}', github.head_ref) }}