-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7dc09f0
commit 2d3f1db
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
fetch-depth: 0 # This is important to fetch all history for all tags and branches | ||
|
||
- name: Get latest tag | ||
id: get_latest_tag | ||
|
@@ -40,11 +40,13 @@ jobs: | |
echo "NEW_TAG=$new_tag" >> $GITHUB_OUTPUT | ||
- name: Create and push new tag | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PAT }} | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git tag ${{ steps.bump_version.outputs.NEW_TAG }} | ||
git push origin ${{ steps.bump_version.outputs.NEW_TAG }} | ||
git push https://${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git ${{ steps.bump_version.outputs.NEW_TAG }} | ||
- name: Set up environment variables | ||
run: | | ||
|