Skip to content

Instantly share code, notes, and snippets.

@Gr1N
Created January 12, 2020 12:18
Show Gist options
  • Save Gr1N/f6d76b08d2b5c2acece7b8930caf43f8 to your computer and use it in GitHub Desktop.
Save Gr1N/f6d76b08d2b5c2acece7b8930caf43f8 to your computer and use it in GitHub Desktop.
10 things I love about GitHub Actions (cache)
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: 3.8
- uses: actions/cache@v1
id: cache
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- runs: pip install -U -r requirements.txt
if: steps.cache.outputs.cache-hit != 'true'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment