From 1769ba978a2bb23f799c094c8921b9ef7653b39c Mon Sep 17 00:00:00 2001 From: jguer Date: Sat, 13 Jun 2020 23:32:58 +0200 Subject: [PATCH] fix(ci): fix tag retrieval for bash --- .github/workflows/multiarch-build.yml | 8 ++++---- .github/workflows/tag.yml | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/multiarch-build.yml b/.github/workflows/multiarch-build.yml index c0028ae8..9649d30f 100644 --- a/.github/workflows/multiarch-build.yml +++ b/.github/workflows/multiarch-build.yml @@ -18,8 +18,8 @@ jobs: id: tags shell: bash run: | - echo ::set-output name=VERSION::${GITHUB_REF#/refs/tags/v} - echo ::set-output name=TAG::${GITHUB_REF#/refs/tags/} + echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/} + echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//} - name: Install dependencies run: sudo apt update -y && sudo apt install -y qemu qemu-user-static - name: Setup qemu-user-static @@ -42,8 +42,8 @@ jobs: id: tags shell: bash run: | - echo ::set-output name=VERSION::${GITHUB_REF#/refs/tags/v} - echo ::set-output name=TAG::${GITHUB_REF#/refs/tags/} + echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/} + echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//} - name: Changelog uses: scottbrenner/generate-changelog-action@master id: changelog diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index e9f27500..9a73dd22 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -1,6 +1,10 @@ name: Tag on: push: + paths-ignore: + - ".github/**" + - "README.md" + - ".gitignore" branches: - master