Skip to content

Commit

Permalink
Merge pull request #61 from idigs/main
Browse files Browse the repository at this point in the history
setup weekly timer for cache access
  • Loading branch information
mbeidler3 authored Oct 22, 2024
2 parents 7b53bae + 6637c73 commit 211036a
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/cachepoke.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#
# Workflow runs weekly to prevent GH dependency cache eviction
#
# GitHub Actions run in UTC time
#

name: cachepoke
on:
schedule:
- cron: '47 18 * * SAT' # Trigger workflow every Sat at 18:47 UTC

jobs:
job_one:
runs-on: ubuntu-latest
steps:
- name: spack cache
id: spack-cache
uses: actions/cache@v3
with:
key: spack-cache-sandlot-6
path: |
./spack
~/.spack
#
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule
#

0 comments on commit 211036a

Please sign in to comment.