mirror of
https://github.com/Andrewcpu/elevenlabs-api.git
synced 2026-05-06 03:00:23 -04:00
Compare commits
3 Commits
v$(steps.v
...
v25
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aef486a14d | ||
|
|
12375897b0 | ||
|
|
9c3b295de7 |
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
@@ -27,25 +27,12 @@ jobs:
|
||||
id: version
|
||||
run: echo ::set-output name=version::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
|
||||
|
||||
- name: Fetch tags from remote
|
||||
run: git fetch --tags
|
||||
|
||||
- name: Get current tag
|
||||
id: current_tag
|
||||
run: echo ::set-output name=tag::$(git describe --abbrev=0 --tags 2>/dev/null || echo '')
|
||||
|
||||
- name: Create new tag
|
||||
id: makeatag
|
||||
run: |
|
||||
if [ `$(git tag v${{ steps.version.outputs.version }} | wc -l)` -le 2 ]; then
|
||||
echo ::set-output name=successful::true
|
||||
else
|
||||
echo ::set-output name=successful::false
|
||||
fi
|
||||
run: git tag v${{github.run_number}}
|
||||
|
||||
- name: Push new tag
|
||||
if: ${{steps.makeatag.successful}}
|
||||
run: git push origin v${{ steps.version.outputs.version }}
|
||||
run: git push origin v${{github.run_number}} # I was a fool.
|
||||
|
||||
- name: Create Release
|
||||
if: always()
|
||||
@@ -54,7 +41,7 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ steps.current_tag.outputs.tag || 'v$(steps.version.outputs.version)' }}
|
||||
tag_name: v${{github.run_number}} # Defeated by logic I stand.
|
||||
release_name: "Release v${{ steps.version.outputs.version }} Build ${{ github.run_number }}"
|
||||
draft: false
|
||||
prerelease: false
|
||||
|
||||
Reference in New Issue
Block a user