Slight modifications based on linter results.

This commit is contained in:
g-samroberts
2026-02-05 15:20:57 -08:00
parent b828186779
commit b4d43a78ca
2 changed files with 9 additions and 15 deletions

View File

@@ -27,17 +27,12 @@ jobs:
- name: Get release information
id: release_info
run: |
VERSION="${{ github.event.release.tag_name }}"
# Get the previous release tag
PREVIOUS_VERSION=$(gh release list --limit 1 --exclude-drafts --exclude-prereleases --json tagName -q '.[0].tagName' | sed 's/^v//')
echo "VERSION=${{ github.event.release.tag_name }}" >> "$GITHUB_OUTPUT"
# Sanitize the release body to be passed as a command-line argument
# This replaces newlines with a special marker to be undone in the prompt
RAW_CHANGELOG=$(echo "${{ github.event.release.body }}" | tr '\n' '%%NEWLINE%%')
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
echo "PREVIOUS_VERSION=$PREVIOUS_VERSION" >> $GITHUB_OUTPUT
echo "RAW_CHANGELOG=$RAW_CHANGELOG" >> $GITHUB_OUTPUT
# Use a heredoc to preserve multiline release body
echo 'RAW_CHANGELOG<<EOF' >> "$GITHUB_OUTPUT"
echo "${{ github.event.release.body }}" >> "$GITHUB_OUTPUT"
echo 'EOF' >> "$GITHUB_OUTPUT"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -45,7 +40,6 @@ jobs:
uses: 'google-github-actions/run-gemini-cli@a3bf79042542528e91937b3a3a6fbc4967ee3c31' # ratchet:google-github-actions/run-gemini-cli@v0
env:
VERSION: ${{ steps.release_info.outputs.VERSION }}
PREVIOUS_VERSION: ${{ steps.release_info.outputs.PREVIOUS_VERSION }}
RAW_CHANGELOG: ${{ steps.release_info.outputs.RAW_CHANGELOG }}
with:
gemini_api_key: ${{ secrets.GEMINI_API_KEY }}
@@ -54,9 +48,8 @@ jobs:
**Release Information:**
- New Version: $VERSION
- Previous Version: $PREVIOUS_VERSION
- Release Date: $(date +%Y-%m-%d)
- Raw Changelog Data (newlines replaced with '%%NEWLINE%%'): $RAW_CHANGELOG
- Raw Changelog Data: $RAW_CHANGELOG
Execute the release notes generation process using the information provided.