Adding R0001381_00006.jpg #5
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: convert_images | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- images/uploads/** | |
permissions: | |
contents: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
convertimages: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
- uses: glenrobson/iiif-tiler-action@main | |
with: | |
input-dir-v2: images/uploads/2 | |
input-dir-v3: images/uploads/3 | |
output-dir: images | |
manifest: images/manifest.json | |
- name: commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git config pull.rebase false | |
git pull origin main | |
git add -A | |
git commit -m "Adding IIIF image to repository" -a || echo "No changes to commit" | |
- name: push changes | |
uses: ad-m/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: main |