mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 21:03:05 -07:00
Slight modifications based on linter results.
This commit is contained in:
@@ -35,8 +35,9 @@ Regardless of the type of release, the following information is expected:
|
|||||||
* **Raw changelog data:** A list of all pull requests and changes
|
* **Raw changelog data:** A list of all pull requests and changes
|
||||||
included in the release, in the format `description by @author in
|
included in the release, in the format `description by @author in
|
||||||
#pr_number`.
|
#pr_number`.
|
||||||
* **Previous version number:** The version number of the last release
|
* **Previous version number:** The version number of the last release can be
|
||||||
(e.g., `v0.26.0`).
|
calculated by decreasing the minor version number by one and setting the
|
||||||
|
patch or bug fix version number.
|
||||||
|
|
||||||
## Procedure
|
## Procedure
|
||||||
|
|
||||||
|
|||||||
@@ -27,17 +27,12 @@ jobs:
|
|||||||
- name: Get release information
|
- name: Get release information
|
||||||
id: release_info
|
id: release_info
|
||||||
run: |
|
run: |
|
||||||
VERSION="${{ github.event.release.tag_name }}"
|
echo "VERSION=${{ github.event.release.tag_name }}" >> "$GITHUB_OUTPUT"
|
||||||
# Get the previous release tag
|
|
||||||
PREVIOUS_VERSION=$(gh release list --limit 1 --exclude-drafts --exclude-prereleases --json tagName -q '.[0].tagName' | sed 's/^v//')
|
|
||||||
|
|
||||||
# Sanitize the release body to be passed as a command-line argument
|
# Use a heredoc to preserve multiline release body
|
||||||
# This replaces newlines with a special marker to be undone in the prompt
|
echo 'RAW_CHANGELOG<<EOF' >> "$GITHUB_OUTPUT"
|
||||||
RAW_CHANGELOG=$(echo "${{ github.event.release.body }}" | tr '\n' '%%NEWLINE%%')
|
echo "${{ github.event.release.body }}" >> "$GITHUB_OUTPUT"
|
||||||
|
echo 'EOF' >> "$GITHUB_OUTPUT"
|
||||||
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
|
|
||||||
echo "PREVIOUS_VERSION=$PREVIOUS_VERSION" >> $GITHUB_OUTPUT
|
|
||||||
echo "RAW_CHANGELOG=$RAW_CHANGELOG" >> $GITHUB_OUTPUT
|
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
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
|
uses: 'google-github-actions/run-gemini-cli@a3bf79042542528e91937b3a3a6fbc4967ee3c31' # ratchet:google-github-actions/run-gemini-cli@v0
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ steps.release_info.outputs.VERSION }}
|
VERSION: ${{ steps.release_info.outputs.VERSION }}
|
||||||
PREVIOUS_VERSION: ${{ steps.release_info.outputs.PREVIOUS_VERSION }}
|
|
||||||
RAW_CHANGELOG: ${{ steps.release_info.outputs.RAW_CHANGELOG }}
|
RAW_CHANGELOG: ${{ steps.release_info.outputs.RAW_CHANGELOG }}
|
||||||
with:
|
with:
|
||||||
gemini_api_key: ${{ secrets.GEMINI_API_KEY }}
|
gemini_api_key: ${{ secrets.GEMINI_API_KEY }}
|
||||||
@@ -54,9 +48,8 @@ jobs:
|
|||||||
|
|
||||||
**Release Information:**
|
**Release Information:**
|
||||||
- New Version: $VERSION
|
- New Version: $VERSION
|
||||||
- Previous Version: $PREVIOUS_VERSION
|
|
||||||
- Release Date: $(date +%Y-%m-%d)
|
- 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.
|
Execute the release notes generation process using the information provided.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user