generated from pieceowater-dev/openAPI-backend-template
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 839 Bytes
/
main.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
name: Update Parent Repo
on:
push:
branches:
- main
jobs:
update_parent_repo:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Configure Git
run: |
git config --global user.name "pieceowater"
git config --global user.email "pieceowater@gmail.com"
- name: Clone parent repo
run: |
git clone https://github.com/pieceowater/QPay.git parent_repo
- name: Update submodule in parent repo
run: |
cd parent_repo
git submodule update --remote
- name: Add and commit submodule changes
run: |
cd parent_repo
git add .
git commit -m "${{ github.repository }}"
- name: Push changes to parent repo
run: |
cd parent_repo
git push origin main