Fix automatic tag

pull/211/head 1.1.8
Michele Locati 2020-12-09 14:01:10 +01:00
parent 935bf8a85b
commit 10edaaf676
No known key found for this signature in database
GPG Key ID: 98B7CE2E7234E28B
1 changed files with 2 additions and 3 deletions

View File

@ -101,11 +101,10 @@ jobs:
with:
time: 30s
- name: Create version tag after a push in the local repository
id: create_tag
if: env.VERSIONTAG_THIS != ''
run: |
git tag -- "$VERSIONTAG_THIS"
echo "::set-output name=tag_sha::$(git rev-parse HEAD)"
printf 'VERSIONTAG_THIS_SHA=%s\n' "$(git rev-parse HEAD)" >> "$GITHUB_ENV"
- name: Create version tag after a push in the remote repository
if: env.VERSIONTAG_THIS != ''
uses: actions/github-script@v3
@ -116,7 +115,7 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
ref: `refs/tags/${process.env.VERSIONTAG_THIS}`,
sha: steps.create_tag.outputs.tag_sha
sha: process.env.VERSIONTAG_THIS_SHA
})
- name: Check format of received tag
if: github.event_name == 'create' && github.event.ref_type == 'tag'