mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-06-02 10:29:37 +00:00
change way to get last version, create a script to revert release
This commit is contained in:
9
.github/scripts/generate_release_notes.sh
vendored
9
.github/scripts/generate_release_notes.sh
vendored
@@ -76,12 +76,13 @@ fi
|
||||
|
||||
echo "🤖 Generating release notes using Gemini AI..."
|
||||
|
||||
# Get commit history since last version tag
|
||||
LAST_VERSION=$(sed -n 's/^__version__ = "\([^"]*\)"/\1/p' src/last_version.py)
|
||||
echo "Last version from src/last_version.py: $LAST_VERSION"
|
||||
# Get previous version from history of src/version.py
|
||||
LAST_VERSION=$(git show HEAD^:src/version.py | sed -n 's/^__version__ = "\([^"]*\)"/\1/p')
|
||||
echo "Last version from git history of src/version.py: $LAST_VERSION"
|
||||
|
||||
# Get commit history since last version tag
|
||||
echo "Looking for last version tag: v$LAST_VERSION"
|
||||
PREV_TAG="v$LAST_VERSION"
|
||||
echo "Looking for last version tag: $PREV_TAG"
|
||||
|
||||
if ! git rev-parse "$PREV_TAG" >/dev/null 2>&1; then
|
||||
echo "❌ Error: Could not find previous tag for $PREV_TAG"
|
||||
|
||||
Reference in New Issue
Block a user