Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace dedicated action pull request with gh/git commands #278

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}