Skip to content

Update main.yml

Update main.yml #8

Workflow file for this run

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