mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-03-15 20:32:36 +08:00
Add cache upload options and pull from latest actions/cache master
This commit is contained in:
12
.github/workflows/cache-tests.yml
vendored
12
.github/workflows/cache-tests.yml
vendored
@@ -1,5 +1,13 @@
|
||||
name: cache-unit-tests
|
||||
on: push
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -21,7 +29,7 @@ jobs:
|
||||
with:
|
||||
node-version: 12.x
|
||||
|
||||
# In order to save & restore cache artifacts from a shell script, certain env variables need to be set that are only available in the
|
||||
# In order to save & restore cache from a shell script, certain env variables need to be set that are only available in the
|
||||
# node context. This runs a local action that gets and sets the necessary env variables that are needed
|
||||
- name: Set env variables
|
||||
uses: ./packages/cache/__tests__/__fixtures__/
|
||||
|
||||
Reference in New Issue
Block a user