Skip to content

Commit

Permalink
Run on submodule update
Browse files Browse the repository at this point in the history
  • Loading branch information
martimpassos authored Apr 5, 2024
1 parent c4f9f17 commit e01722c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/iiif.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Build IIIF Manifests

on:
repository_dispatch:
types: [submodule-update]
workflow_dispatch:
inputs:
index:
Expand All @@ -21,6 +23,22 @@ jobs:
with:
submodules: true

- name: Update submodule
run: |
cd data
git pull origin main
cd ..
git config --global user.name 'martimpassos'
git config --global user.email 'martimpassos@users.noreply.github.com'
git add data
if git diff --staged --quiet; then
echo "No changes detected, skipping commit."
exit 0
else
git commit -am "Update submodule"
git push
fi
- name: Build Docker image
run: docker build . -t etl

Expand Down

0 comments on commit e01722c

Please sign in to comment.