Sync Libis #756
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |