Skip to content

Sync Libis

Sync Libis #756

Workflow file for this run

name: Sync Libis
on:
schedule:
# Daily schedule
- cron: '0 3 * * *'
workflow_dispatch: {}
jobs:
copy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
git clone --depth=1 --branch=main https://github.com/libis/ca_tudelft_iiif
pwd
ls
rm -r content/objects
rm -rf content/collections/lib-collectiveaccess
cp -a ca_tudelft_iiif/objects/. content/objects
cp -a ca_tudelft_iiif/collections/. content/collections/lib-collectiveaccess
rm -r ca_tudelft_iiif
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git diff-index --quiet HEAD || git commit -m "Automatic publish from github.com/libis/ca_tudelft_iiif"
- run: git push origin master --force-with-lease