workspace

This commit is contained in:
Marco 2022-08-26 21:23:01 +08:00
parent a1562aa4c2
commit 46bf7614bf

View file

@ -18,7 +18,7 @@ jobs:
- name: Create temp files - name: Create temp files
id: secret-file1 id: secret-file1
run: | run: |
$secretFile = Join-Path -Path $env:RUNNER_TEMP -ChildPath "lib/secret-file.txt"; $secretFile = Join-Path -Path $env:GITHUB_WORKSPACE -ChildPath "lib/secret-file.txt";
$encodedBytes = [System.Convert]::FromBase64String($env:CHANGE_NOW); $encodedBytes = [System.Convert]::FromBase64String($env:CHANGE_NOW);
Set-Content $secretFile -Value $encodedBytes -AsByteStream; Set-Content $secretFile -Value $encodedBytes -AsByteStream;
$secretFileHash = Get-FileHash $secretFile; $secretFileHash = Get-FileHash $secretFile;