Skip to content

Commit 0390055

Browse files
committed
chore: Use reusable action
1 parent a9b2d87 commit 0390055

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/actions/run-nx-target/action.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@ inputs:
88

99
runs:
1010
using: composite
11-
env:
12-
cache-key: nx-cache
1311
steps:
1412
- name: Restore Nx cache
1513
uses: actions/cache/restore@v4
1614
id: cache-restore
1715
with:
1816
path: .nx
19-
key: ${{ env.cache-key }}
17+
key: nx-cache
2018
- name: Derive appropriate SHAs for base and head for `nx affected` commands
2119
if: github.event_name == 'pull_request'
2220
uses: nrwl/nx-set-shas@v2
@@ -33,11 +31,11 @@ runs:
3331
continue-on-error: true
3432
run: |
3533
gh extension install actions/gh-actions-cache
36-
gh actions-cache delete "${{ env.cache-key }}" --confirm
34+
gh actions-cache delete "nx-cache" --confirm
3735
env:
3836
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3937
- name: Save Nx cache
4038
uses: actions/cache/save@v4
4139
with:
4240
path: .nx
43-
key: ${{ env.cache-key }}
41+
key: nx-cache

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
build:
3232
name: Build
3333
runs-on: ubuntu-latest
34+
needs: lint
3435
env:
3536
cache-key: nx-cache
3637
steps:

0 commit comments

Comments
 (0)