-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update README.md for tag '0.2.2' [skip ci]
- Loading branch information
1 parent
85f4598
commit 1ee5cfb
Showing
2 changed files
with
10 additions
and
6 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 |
---|---|---|
|
@@ -22,8 +22,7 @@ jobs: | |
git tag -d $VERSION | ||
git push --delete origin $VERSION | ||
- name: Update README.md and push with version tag | ||
- name: Update README.md | ||
run: | | ||
VERSION=${GITHUB_REF#refs/tags/} | ||
echo "Tagging updated README.md with '$VERSION'." | ||
|
@@ -32,6 +31,11 @@ jobs: | |
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Actions" | ||
git add README.md | ||
git commit -m "Update README.md for tag '$VERSION' [skip ci]" | ||
git tag $VERSION | ||
git push origin HEAD:main | ||
git commit -m "Update README.md for tag '$VERSION' [skip ci]" || echo "No changes to commit" | ||
- name: Tag latest commit | ||
run: | | ||
VERSION=${GITHUB_REF#refs/tags/} | ||
git tag -fa $VERSION -m "Update tag '$VERSION' to latest commit" | ||
git push origin $VERSION --force | ||
echo "Pushed tag '$VERSION' to the latest commit." |
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