Skip to content

Merge pull request #40 from mundialis/add_xsel_for_DOP_SN #8

Merge pull request #40 from mundialis/add_xsel_for_DOP_SN

Merge pull request #40 from mundialis/add_xsel_for_DOP_SN #8

Workflow file for this run

name: Update DOP SN Tile Index
on:
push:
branches:
- main
schedule:
# run tile index creation every month (Min HH DD Month DayOfWeek)
- cron: '0 15 09 * *'
jobs:
update-tindex-dop-nw:
runs-on: ubuntu-latest
env:
CI_COMMIT_MESSAGE: Update SN DOP tile index
steps:
- uses: actions/checkout@v4
- name: Creation of tindex
run: |
sed -i "s+RUN pip3 install requests remotezip+RUN pip3 install selenium pyperclip+g" docker/Dockerfile
sed -i "s+RUN python3 DOP/NW/openNRW_DOP_tindex.py+RUN python3 DOP/SN/DOP_tileindex_SN.py+g" docker/Dockerfile
docker build -f docker/Dockerfile -t test-tindex .
ID=$(docker create test-tindex)
echo $ID
docker cp $ID:/src/tile-indices/DOP/SN/DOP20_tileindex_SN.gpkg.gz DOP/SN/
# Commit and push all changed files.
- name: Upload tindex
# Only run on main branch push (e.g. after pull request merge).
run: |
ID=$(docker create test-tindex)
echo ${ID}
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
git add DOP/SN/DOP_20_tileindex_SN.gpkg.gz
git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
git push