Cannot have tags with same name as branches
parent
e15b70fafc
commit
32f3b0aa7a
|
@ -18,14 +18,19 @@ jobs:
|
|||
ref: ${{ github.event.workflow_run.head_branch }}
|
||||
fetch-depth: 0
|
||||
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
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ github.event.workflow_run.head_branch }}
|
||||
release_name: ${{ github.event.workflow_run.head_branch }}
|
||||
tag_name: release_${{ steps.get_latest_tag.outputs.LATEST_TAG }}
|
||||
release_name: Release ${{ steps.get_latest_tag.outputs.LATEST_TAG }}
|
||||
body_path: RELEASE.md
|
||||
draft: false
|
||||
prerelease: false
|
||||
|
|
Loading…
Reference in New Issue