action.yml
1 name: Update Cargo cache 2 3 inputs: 4 key: 5 description: The key to use for the cache 6 required: true 7 8 description: Update the Cargo artifacts cache at the provided key 9 10 runs: 11 using: composite 12 steps: 13 - name: Set up Cargo cache 14 uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # Version 4.2.3 15 with: 16 path: | 17 ~/.cargo/registry/index/ 18 ~/.cargo/registry/cache/ 19 ~/.cargo/git/db/ 20 target/ 21 # Must be in sync with the key used in the setup-cargo-cache action 22 key: ${{ inputs.key }}->#${{ github.run_id }} 23 continue-on-error: true