fix(ci): fix tag retrieval for bash

This commit is contained in:
jguer 2020-06-13 23:32:58 +02:00
parent d3f9335d2d
commit 1769ba978a
No known key found for this signature in database
GPG key ID: 6D6CC9BEA8556B35
2 changed files with 8 additions and 4 deletions

View file

@ -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

View file

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