Cannot have tags with same name as branches
parent
e15b70fafc
commit
32f3b0aa7a
|
@ -18,14 +18,19 @@ jobs:
|
||||||
ref: ${{ github.event.workflow_run.head_branch }}
|
ref: ${{ github.event.workflow_run.head_branch }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
lfs: false
|
lfs: false
|
||||||
|
- name: Get latest tag
|
||||||
|
id: get_latest_tag
|
||||||
|
run: |
|
||||||
|
latest_tag=$(git describe --tags --abbrev=0)
|
||||||
|
echo "LATEST_TAG=${latest_tag}" >> $GITHUB_OUTPUT
|
||||||
- name: Create release
|
- name: Create release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.event.workflow_run.head_branch }}
|
tag_name: release_${{ steps.get_latest_tag.outputs.LATEST_TAG }}
|
||||||
release_name: ${{ github.event.workflow_run.head_branch }}
|
release_name: Release ${{ steps.get_latest_tag.outputs.LATEST_TAG }}
|
||||||
body_path: RELEASE.md
|
body_path: RELEASE.md
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
Loading…
Reference in New Issue