-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add workflow to allow for automatic opening of PR upon release
- Loading branch information
1 parent
d26c8f9
commit f1e9f03
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Create Release Pull Request | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: "Version" | ||
required: true | ||
|
||
jobs: | ||
create-pull-request: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Get date | ||
id: date | ||
run: echo "::set-output name=date::$(date +'%Y%m%d')" | ||
|
||
- name: Create Pull Request | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
gh pr create --title "Automated PR" --body "This PR is created automatically by the workflow." | ||
--base main --head release-v2.2.1-20240520 |