fix(releases): Fix create release and remove old tag (#493)
This commit is contained in:
parent
6753822cd9
commit
e7f01c1326
1 changed files with 14 additions and 2 deletions
16
.github/workflows/create-release.yml
vendored
16
.github/workflows/create-release.yml
vendored
|
|
@ -15,7 +15,14 @@ jobs:
|
|||
- name: Install NGBV
|
||||
uses: dotnet/nbgv@master
|
||||
id: nbgv
|
||||
- name: Get last release
|
||||
- name: Delete Fake Release
|
||||
uses: dev-drprasad/delete-tag-and-release@v0.1.3
|
||||
with:
|
||||
delete_release: true
|
||||
tag_name: v0.1.0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Get Latest Release
|
||||
id: last_release
|
||||
uses: pozetroninc/github-action-get-latest-release@master
|
||||
with:
|
||||
|
|
@ -24,10 +31,15 @@ jobs:
|
|||
excludes: prerelease, draft
|
||||
- name: Create fake tag for diffing
|
||||
run: |
|
||||
git config --global user.name "Runner"
|
||||
git config --global user.name "Fake Tag Action"
|
||||
git config --global user.email "hi@modernuo.com"
|
||||
git checkout ${{ steps.last_release.outputs.release }}
|
||||
<<<<<<< Updated upstream
|
||||
git tag -fa v0.1.0 -m "Fake release"
|
||||
=======
|
||||
git tag -fa v0.1.0
|
||||
git push --force origin tag v0.1.0
|
||||
>>>>>>> Stashed changes
|
||||
git checkout -
|
||||
- name: Conventional Changelog
|
||||
id: changelog
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue