diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml new file mode 100644 index 0000000..84b404a --- /dev/null +++ b/.github/workflows/run.yml @@ -0,0 +1,34 @@ +name: build-main +run-name: build-main +on: + push: + branches: + - main + schedule: + # every day at midnight + - cron: 0 0 * * * + +jobs: + build: + runs-on: ubuntu-latest + container: + image: ghcr.io/osgeo/gdal + permissions: + contents: write + name: main + steps: + - run: apt-get update + + - run: apt-get install -y git + + - uses: actions/checkout@v3 + + - run: sh ./run.sh + + - run: ls ./files + + # prevents fatal: detected dubious ownership in repository at '/__w/ogr2ogr/ogr2ogr' + - run: git config --global --add safe.directory /__w/ogr2ogr/ogr2ogr + + # Commit all changed files back to the repository + - uses: stefanzweifel/git-auto-commit-action@v5