-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.07 KB
/
convert_images.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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