Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
lancejpollard committed Jan 23, 2024
1 parent c33ff09 commit 341de69
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/choco.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 341de69

Please sign in to comment.