Skip to content

Commit a591821

Browse files
committed
Use output of get-node-version job in precommit job
1 parent 333cc63 commit a591821

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
pre-commit:
2929
name: Run pre-commit
3030
runs-on: ubuntu-latest
31+
needs: get-node-version
3132
steps:
3233
- uses: actions/checkout@v5
3334
with:
@@ -39,7 +40,7 @@ jobs:
3940
python-version: "3.8"
4041
- uses: actions/setup-node@v5
4142
with:
42-
node-version: ${{ steps.get-node-version.outputs.node-version }}
43+
node-version: ${{ needs.get-node-version.outputs.node-version }}
4344
- uses: snok/install-poetry@v1
4445
with:
4546
version: 1.4.1
@@ -62,7 +63,7 @@ jobs:
6263
path: ~/.cache/pre-commit
6364
key: "pre-commit-${{ runner.os }}-\
6465
${{ steps.setup-python.outputs.python-version }}-\
65-
${{ steps.get-node-version.outputs.node-version }}-\
66+
${{ needs.get-node-version.outputs.node-version }}-\
6667
${{ hashFiles('.pre-commit-config.yaml') }}"
6768
- name: Run pre-commit
6869
run: poetry run pre-commit run --show-diff-on-failure --color=always --all-files

0 commit comments

Comments
 (0)