-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (48 loc) · 1.67 KB
/
pr-app-overview.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
41
42
43
44
45
46
47
48
# see https://github.com/marketplace/actions/github-action-for-creating-pull-requests
name: Update App Examples Overview
on:
workflow_dispatch:
push:
branches:
- overview-update
jobs:
UpdateAppOverviewPr:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set target branch
id: target
run:
|
TARGET_BRANCH="main"
echo "Target branch: ${TARGET_BRANCH}"
echo "target_branch=${TARGET_BRANCH}" >> $GITHUB_OUTPUT
- name: Set reviewers
id: reviewers
run:
|
REVIEWERS="fblankenburgzeiss,mprinkezs"
echo "Reviewers: ${REVIEWERS}"
echo "reviewers=${REVIEWERS}" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: devops-infra/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
#source_branch: overview-update
target_branch: ${{ format('{0}', steps.target.outputs.target_branch) }}
title: ${{ format('App examples overview update pull request ({0})', steps.target.outputs.target_branch) }}
#template: .github/PULL_REQUEST_TEMPLATE.md
body: "**Automated pull request**"
reviewer: ${{ format('{0}', steps.reviewers.outputs.reviewers) }}
#assignee: octocat
label: documentation
#milestone: My milestone
#draft: true
#old_string: "<!-- Add your description here -->"
#new_string: "** Automatic pull request**"
get_diff: true
ignore_users: "dependabot"
allow_no_diff: false