parent
935bf8a85b
commit
10edaaf676
|
@ -101,11 +101,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
time: 30s
|
time: 30s
|
||||||
- name: Create version tag after a push in the local repository
|
- name: Create version tag after a push in the local repository
|
||||||
id: create_tag
|
|
||||||
if: env.VERSIONTAG_THIS != ''
|
if: env.VERSIONTAG_THIS != ''
|
||||||
run: |
|
run: |
|
||||||
git tag -- "$VERSIONTAG_THIS"
|
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
|
- name: Create version tag after a push in the remote repository
|
||||||
if: env.VERSIONTAG_THIS != ''
|
if: env.VERSIONTAG_THIS != ''
|
||||||
uses: actions/github-script@v3
|
uses: actions/github-script@v3
|
||||||
|
@ -116,7 +115,7 @@ jobs:
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
ref: `refs/tags/${process.env.VERSIONTAG_THIS}`,
|
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
|
- name: Check format of received tag
|
||||||
if: github.event_name == 'create' && github.event.ref_type == 'tag'
|
if: github.event_name == 'create' && github.event.ref_type == 'tag'
|
||||||
|
|
Loading…
Reference in New Issue