Skip to content

Commit

Permalink
feat: add workflow to allow for automatic opening of PR upon release
Browse files Browse the repository at this point in the history
  • Loading branch information
raimundo-henriques committed May 20, 2024
1 parent d26c8f9 commit 4a73a4c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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 "Release v${{inputs.version}}" --body "Automated release of v${{inputs.version}}" --base main --head release-v${{ inputs.version }}-${{steps.date.outputs.date}}

0 comments on commit 4a73a4c

Please sign in to comment.