Skip to content

Merge pull request #7 from tuftsdatalab/develop #7

Merge pull request #7 from tuftsdatalab/develop

Merge pull request #7 from tuftsdatalab/develop #7

name: mirror-content
on:
push:
branches:
- main
jobs:
get-date:
runs-on: ubuntu-latest
outputs:
date: ${{ steps.date.outputs.date }}
steps:
- id: date
run: |
echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
mirror-to-binder-branch:
runs-on: ubuntu-latest
needs: get-date
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: tuftsrt/branch-manager@develop
with:
destination-branch: binder
clear-destination: "true"
copy: |
binder/|.binder
tutorial/|
replace: |
GH_ACTIONS_DATE|${{ needs.get-date.outputs.date }}|*.ipynb
mirror-to-data-branch:
runs-on: ubuntu-latest
needs: get-date
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: tuftsrt/branch-manager@develop
with:
destination-branch: data
clear-destination: "true"
copy: |
tutorial/data/|
mirror-to-tutorial-branch:
runs-on: ubuntu-latest
needs: get-date
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: tuftsrt/branch-manager@develop
with:
destination-branch: tutorial
clear-destination: "true"
copy: |
binder/environment.yml|environment.yml
tutorial/|
replace: |
GH_ACTIONS_DATE|${{ needs.get-date.outputs.date }}|*.ipynb