Skip to content

Open weekly production pull request #130

Open weekly production pull request

Open weekly production pull request #130

name: 'Open weekly production pull request'
on:
schedule:
- cron: '30 12 * * 2'
jobs:
prod-pull-request:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: 'Set PR template'
id: pr-template
run: |
template=$(cat scripts/production-pull-request-template.sh)
echo "::set-output name=template::$template"
- name: 'Set PR params'
id: pr-params
run: |
json_params=$(scripts/automated-production-pr.sh)
echo "::set-output name=json_params::$json_params"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: ${{fromJson(steps.pr-params.outputs.json_params)[0]}}
branch: ${{fromJson(steps.pr-params.outputs.json_params)[1]}}
assignees: ${{fromJson(steps.pr-params.outputs.json_params)[2]}}
reviewers: ${{fromJson(steps.pr-params.outputs.json_params)[2]}}
committer: Unlock Deployer <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
body: ${{steps.pr-template.outputs.template}}