Skip to content

Commit

Permalink
Fix hashFiles()
Browse files Browse the repository at this point in the history
hashFiles only supports files in the GITHUB_WORKSPACE
  • Loading branch information
wh201906 committed May 18, 2023
1 parent 94c27bc commit 69c3fd9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,27 @@ jobs:
- name: ProxSpace download
run: Invoke-WebRequest "https://github.com/Gator96100/ProxSpace/archive/master.zip" -outfile "C:\proxspace.zip" -Passthru

- name: ProxSpace Copy
run: copy "C:\proxspace.zip" ./

- name: Cache ProxSpace
id: cache-proxspace
uses: actions/cache@v3
env:
cache-name: cache-proxspace
with:
path: C:/ProxSpace
key: proxspace-${{ hashFiles('C:/proxspace.zip') }}-${{ github.run_id }}
key: proxspace-${{ hashFiles('./proxspace.zip') }}-${{ github.run_id }}
restore-keys: |
proxspace-${{ hashFiles('C:/proxspace.zip') }}-
proxspace-${{ hashFiles('./proxspace.zip') }}-
- name: ProxSpace extract
run: Expand-Archive -LiteralPath "C:\proxspace.zip" -DestinationPath "C:\"

- name: ProxSpace delete zip
run: Remove-Item "C:\proxspace.zip"
run: |
Remove-Item "C:\proxspace.zip"
Remove-Item "./proxspace.zip"
- name: ProxSpace rename folder
run: Get-ChildItem -Path "C:\ProxSpace-*" | Rename-Item -NewName (Split-Path C:\ProxSpace -Leaf)
Expand Down

0 comments on commit 69c3fd9

Please sign in to comment.