fix: use outputs in build job
This commit is contained in:
parent
6f4f13e1f7
commit
967c194a45
|
@ -6,6 +6,8 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
cache-primary-key: ${{ steps.cache.outputs.cache-primary-key }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Use Node.js
|
- name: Use Node.js
|
||||||
|
@ -29,7 +31,7 @@ jobs:
|
||||||
- uses: actions/cache/restore@v3
|
- uses: actions/cache/restore@v3
|
||||||
with:
|
with:
|
||||||
path: .
|
path: .
|
||||||
key: ${{ needs.build.steps.cache.outputs.cache-primary-key }}
|
key: ${{ needs.build.outputs.cache-primary-key }}
|
||||||
- name: Install SSH key
|
- name: Install SSH key
|
||||||
uses: shimataro/ssh-key-action@v2
|
uses: shimataro/ssh-key-action@v2
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in New Issue