Keep cache alive #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: Keep cache alive | |
| permissions: | |
| contents: read | |
| # Github only maintains cache files for free account public repos for 7 days, | |
| # so this runs daily to update the cache's last accessed time | |
| on: # yamllint disable-line rule:truthy | |
| schedule: | |
| - cron: 23 4 * * * | |
| workflow_dispatch: | |
| jobs: | |
| keepalive: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Restore newest OSMnx cache | |
| uses: actions/cache/restore@v6 | |
| with: | |
| path: ./notebooks/cache | |
| key: osmnx-cache-keepalive-${{ github.run_id }} | |
| restore-keys: osmnx-cache- | |
| fail-on-cache-miss: true |