Skip to content

Commit

Permalink
Replace dedicated action pull request with gh/git commands (#278)
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Nola <[email protected]>
  • Loading branch information
dereknola authored Nov 4, 2024
1 parent 4da4357 commit e30d3a8
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,18 @@ jobs:
- name: Get current month and year
id: date
run: echo "month_year=$(date +'%B %Y')" >> $GITHUB_ENV
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
commit-message: update release-notes/v1.XX.X.md
title: Update Release Notes ${{ steps.date.outputs.month_year }}
body: Automated release notes update
branch: update-release-notes
signoff: true
- name: Commit release notes
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git checkout -b update-release-notes
git add docs/release-notes/*
git commit -s -m "update release-notes/v1.XX.X.md"
git push -f --set-upstream origin update-release-notes
- name: Create pull request
env:
GH_TOKEN: ${{ github.token }}
run: |
gh pr create --title "Update release notes for $month_year" \
--body "Automated release notes update" --base main --repo ${{ github.repository }}

0 comments on commit e30d3a8

Please sign in to comment.