From 341de69b3453289f862e0ce4eb4ec90724056e22 Mon Sep 17 00:00:00 2001 From: Lance Pollard Date: Mon, 22 Jan 2024 22:37:02 -0800 Subject: [PATCH] save --- .github/workflows/choco.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/choco.yaml b/.github/workflows/choco.yaml index 7acadd3..c3abd2a 100644 --- a/.github/workflows/choco.yaml +++ b/.github/workflows/choco.yaml @@ -10,8 +10,13 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 2 + - name: Install Node.js + uses: actions/setup-node@v4 + if: env.CHOCO_CHANGED == 'true' + with: + node-version: 20.10.x - name: Set CHOCO_CHANGED - run: echo "CHOCO_CHANGED=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }} | grep -Fqx choco.json && echo \"true\")" >> $env:GITHUB_ENV + run: echo "CHOCO_CHANGED=true" >> $env:GITHUB_ENV - name: Create cache directory if: env.CHOCO_CHANGED == 'true' run: mkdir "$($env:LOCALAPPDATA)\choco-cache"