-
-
Notifications
You must be signed in to change notification settings - Fork 254
29 lines (29 loc) · 1.14 KB
/
weekly-prod-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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}}