Create main.yml

This commit is contained in:
Joe 2021-07-07 15:57:12 -05:00 committed by GitHub
parent 7b02cb1546
commit 1995ba0e7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 0 deletions

21
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: subtree-index
on: [push]
jobs:
sync-downstream:
runs-on: ubuntu-latest
name: Update downstream index repo
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: nxtlvlsoftware/git-subtree-action@1
with:
repo: 'infogulch/index'
path: '_notebooks'
deploy_key: ${{ secrets.DOWNSTREAM_GITHUB_DEPLOY_KEY }}
force: true # will force push to the downstream repository