mirror of
https://github.com/cfpwastaken/planetiler-openmaptiles.git
synced 2026-02-04 12:31:10 +00:00
Make planetiler-openmaptiles runnable as a standalone project (#19)
This commit is contained in:
22
.github/cache-sources-action/action.yml
vendored
Normal file
22
.github/cache-sources-action/action.yml
vendored
Normal 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 }}
|
||||
Reference in New Issue
Block a user