-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ignore yanked releases feat: replace older tag release as new HEAD
- Loading branch information
1 parent
9d6994f
commit 7a057b3
Showing
4 changed files
with
69 additions
and
40 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 |
---|---|---|
|
@@ -30,33 +30,5 @@ jobs: | |
git config user.email "[email protected]" | ||
- run: python mirror.py | ||
|
||
- name: check for unpushed commits | ||
id: check_unpushed | ||
run: | | ||
UNPUSHED_COMMITS=$(git log origin/main..HEAD) | ||
if [ -z "$UNPUSHED_COMMITS" ]; then | ||
echo "No unpushed commits found." | ||
echo "changes_exist=false" >> $GITHUB_ENV | ||
else | ||
echo "Unpushed commits found." | ||
echo "changes_exist=true" >> $GITHUB_ENV | ||
fi | ||
- name: push changes if they exist | ||
if: env.changes_exist == 'true' | ||
run: | | ||
git push origin HEAD:refs/heads/main | ||
git push origin HEAD:refs/heads/main --tags | ||
- name: create release on new tag if new changes exist | ||
if: env.changes_exist == 'true' | ||
run: | | ||
TAG_NAME=$(git describe --tags $(git rev-list --tags --max-count=1)) | ||
echo $TAG_NAME | ||
gh release create "$TAG_NAME" \ | ||
--title "$TAG_NAME" \ | ||
--notes "See: https://github.com/astral-sh/uv/releases/tag/$TAG_NAME" \ | ||
--latest | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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
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