-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (39 loc) · 1.28 KB
/
update_parent.yaml
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
name: parent-updater
on:
push:
branches:
- main
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: ${{ secrets.PARENT_REPOSITORY }}
token: ${{ secrets.PARENT_REPO_TOKEN }}
- name: submodule / init
run: |
git submodule update --init --recursive
- name: submodule / update
run: |
git submodule update --recursive --remote
- name: pull request / create
id: cpr
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.PARENT_REPO_TOKEN }}
commit-message: Update Submodule to sha ${{ github.sha }}
branch-suffix: short-commit-hash
title: "[AUTOGENERATED] Update Submodule to sha ${{ github.sha }}"
body: |
Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
draft: false
- name: pull request / merge
uses: peter-evans/create-or-update-comment@v1
with:
token: ${{ secrets.PARENT_REPO_TOKEN }}
repository: ${{ secrets.PARENT_REPOSITORY }}
issue-number: ${{ steps.cpr.outputs.pull-request-number }}"
body: |
/merge-skip-owners