From f1e9f03b6b8756e9784747ada6ae84e47f022ea4 Mon Sep 17 00:00:00 2001 From: Raimundo Henriques Date: Mon, 20 May 2024 17:02:55 +0100 Subject: [PATCH] feat: add workflow to allow for automatic opening of PR upon release --- .github/workflows/release.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..b7c3a3a --- /dev/null +++ b/.github/workflows/release.yml @@ -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