Skip to content

Commit

Permalink
feat: improve PR title
Browse files Browse the repository at this point in the history
  • Loading branch information
s0up4200 committed Oct 8, 2024
1 parent 419fe8b commit 2b519f9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/update_release_notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@ jobs:
- name: Run update script
id: update_script
run: python update_release_notes.py
run: |
version=$(python update_release_notes.py)
echo "::set-output name=version::${version}"
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "Update release notes" || echo "No changes to commit"
git commit -m "docs: update release notes (${version})" || echo "No changes to commit"
- name: Push changes
run: git push origin ${{ steps.update_script.outputs.branch }}
Expand All @@ -41,5 +43,5 @@ jobs:
source_branch: ${{ steps.update_script.outputs.branch }}
destination_branch: "main"
github_token: ${{ secrets.GITHUB_TOKEN }}
pr_title: "Update Release Notes"
pr_title: "docs: update release notes (${{ steps.update_script.outputs.version }})"
pr_body: "Automatically update release notes"

0 comments on commit 2b519f9

Please sign in to comment.