From 1995ba0e7b1cd1b3edf65d228be2eb2ee2027690 Mon Sep 17 00:00:00 2001 From: Joe Taber Date: Wed, 7 Jul 2021 15:57:12 -0500 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..94c292d --- /dev/null +++ b/.github/workflows/main.yml @@ -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