Skip to content

Commit

Permalink
Add parent repo updater submodule. (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
nishkrishnan authored and msarvar committed Oct 18, 2021
1 parent c9a3f17 commit 4380243
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/update_parent.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: parent-updater

on:
push:
branches:
- release-v0.17.1-lyft.1

jobs:
update:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
repository: ${{ secrets.PARENT_REPOSITORY }}
token: ${{ secrets.PARENT_REPO_TOKEN }}

- name: init
run: |
git submodule update --init --recursive
- name: update remote
run: |
git submodule update --recursive --remote
- name: commit
run: |
git config user.email "[email protected]"
git config user.name "$GITHUB_ACTOR"
git add --all
git commit -m "Update submodules" || echo "No changes to commit"
git push
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
on: push
name: Tests
name: tester
jobs:
test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 4380243

Please sign in to comment.