-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (34 loc) · 1.09 KB
/
protected-branch-git-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
30
31
32
33
34
35
36
37
38
39
40
name: Create dummy Release PR
on:
workflow_dispatch:
inputs:
release_version:
description: 'Version of the branch to be released'
required: true
default: '01'
permissions:
contents: write
jobs:
version:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Git
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
- name: Update RELEASE.md
id: update_release_file
run: |
echo "Add dummy change" >> RELEASE.md
- name: Create pull request for release
id: create_pr
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: release/dummy-${{ github.event.inputs.release_version }}
title: "Release: dummy: ${{ github.event.inputs.release_version }}"
body: |
Pull request for release ${{ github.event.inputs.release_version }}
base: main