Browse Source

fix(ci): fix tag retrieval for bash

jguer 4 years atrás
parent
commit
1769ba978a
2 changed files with 8 additions and 4 deletions
  1. 4 4
      .github/workflows/multiarch-build.yml
  2. 4 0
      .github/workflows/tag.yml

+ 4 - 4
.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

+ 4 - 0
.github/workflows/tag.yml

@@ -1,6 +1,10 @@
 name: Tag
 on:
   push:
+    paths-ignore:
+      - ".github/**"
+      - "README.md"
+      - ".gitignore"
     branches:
       - master