Make planetiler-openmaptiles runnable as a standalone project (#19)

This commit is contained in:
Michael Barry
2022-08-02 07:07:41 -04:00
committed by GitHub
parent 62d420811b
commit 0d7cd887ce
75 changed files with 2560 additions and 454 deletions

22
.github/cache-sources-action/action.yml vendored Normal file
View File

@@ -0,0 +1,22 @@
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/metadata-syntax-for-github-actions
name: 'Cache data/sources'
description: 'Save/restore data/sources cache'
inputs:
basedir:
description: 'Base dir for computing file hash'
required: false
default: ''
runs:
using: 'composite'
steps:
- name: Get Date
id: get-data
run: |
echo "::set-output name=hash::${{ hashFiles('**/OpenMapTilesMain.java') }}"
echo "::set-output name=date::$(date -u "+%Y-%m-%d")"
shell: bash
working-directory: ${{ inputs.basedir }}
- uses: actions/cache@v2
with:
path: data/sources
key: data-sources-${{ steps.get-data.outputs.date }}-${{ steps.get-data.outputs.hash }}