Cannot have tags with same name as branches

master
Daniel Lovell 2024-09-29 23:30:36 -07:00
parent e15b70fafc
commit 32f3b0aa7a
1 changed files with 7 additions and 2 deletions

View File

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