Winge19/cache: Cache dependencies and build outputs in GitHub Actions

PHOTO EMBED

Thu Oct 06 2022 14:34:32 GMT+0000 (Coordinated Universal Time)

Saved by @frikke

  # http://man7.org/linux/man-pages/man1/date.1.html
  - name: Get Date
    id: get-date
    run: |
      echo "::set-output name=date::$(/bin/date -u "+%Y%m%d")"
    shell: bash

  - uses: actions/cache@v3
    with:
      path: path/to/dependencies
      key: ${{ runner.os }}-${{ steps.get-date.outputs.date }}-${{ hashFiles('**/lockfiles') }}
content_copyCOPY

https://github.com/Winge19/cache