Skip to content

Commit

Permalink
Create stable tag when tag_stable is created. (#2083)
Browse files Browse the repository at this point in the history
  • Loading branch information
tychobrailleur committed Jun 23, 2024
1 parent 06e13cc commit 8d8365b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ jobs:
--url https://api.github.com/repos/ho-dev/HattrickOrganizer/releases/${{ steps.create_release.outputs.id }} \
--data '{ "draft": false }'
- name: If not dev-release delete previous short version tag
if: ${{ steps.read_version_properties.outputs.tag != 'dev'}}
if: ${{ steps.read_version_properties.outputs.tag != 'dev' }}
uses: ClementTsang/delete-tag-and-release@v0.3.1
with:
delete_release: true
tag_name: ${{ steps.read_version_properties.outputs.shortVersion }}
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
- name: If not dev-release create a Release with short version tag
if: ${{ steps.read_version_properties.outputs.tag != 'dev'}}
if: ${{ steps.read_version_properties.outputs.tag != 'dev' }}
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
Expand All @@ -91,4 +91,10 @@ jobs:
tag_name: ${{ steps.read_version_properties.outputs.shortVersion }}
body_path: docs/md/release_notes.md
target_commitish: ${{ steps.read_version_properties.outputs.branch }}
prerelease: ${{ steps.read_version_properties.outputs.tag != 'tag_stable'}}
prerelease: ${{ steps.read_version_properties.outputs.tag != 'tag_stable' }}
- name: If 'tag_stable' release, also create 'stable' tag
if: ${{ steps.read_version_properties.outputs.tag == 'tag_stable' }}
uses: rickstaa/action-create-tag@v1.7.2
with:
tag: stable
tag_exists_error: false
1 change: 1 addition & 0 deletions src/main/resources/release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
### Option setting

### Misc
* Fix missing `stable` tag when creating `tag_stable` release (#2081)

## Translations

Expand Down

0 comments on commit 8d8365b

Please sign in to comment.