From e2894017ebbb8e9812160a009dd98799dc40a975 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 19 Sep 2025 15:09:22 -0700 Subject: [PATCH] new github action --- .github/workflows/create-release-pr.yml | 45 +++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/create-release-pr.yml diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml new file mode 100644 index 0000000000..a9e8a65d65 --- /dev/null +++ b/.github/workflows/create-release-pr.yml @@ -0,0 +1,45 @@ +name: 🥌 Create publication PR +run-name: Create publication PR [${{ github.actor }}] + +permissions: + pull-requests: write + +on: + workflow_dispatch: + inputs: + releaseBranch: + required: true + description: Release branch name + mergeTarget: + required: true + default: 'main' + description: Merge target for PR + +jobs: + create-pr: + runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + prTitle: "[PUBLISH] ${{ github.event.inputs.releaseBranch }}" + prBody: | + 🚧 \`${{ github.repository }}\` publication PR + + **Triggered by**: @${{ github.actor }} with a Github action + **Release branch**: \`${{ github.event.inputs.releaseBranch }}\` + **Merge target**: \`${{ github.event.inputs.mergeTarget }}\` + + steps: + - name: Check out repository code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Create pull request + run: | + gh pr create \ + --base ${{ github.event.inputs.mergeTarget }} \ + --head ${{ github.event.inputs.releaseBranch }} \ + --title "${{ env.prTitle }}" \ + --body "${{ env.prBody }}" + - name: Wrap-up + run: | + echo "🍏 Final job status: ${{ job.status }}" \ No newline at end of file