From dec58cc78c61fa4b47f1a14cac0b858ac888870e Mon Sep 17 00:00:00 2001 From: Joseph Flinn Date: Thu, 7 Jan 2021 19:30:25 +0000 Subject: [PATCH] moving the downloads into the scripts directory --- .github/workflows/build.yml | 12 ++++++++++++ .github/workflows/exp.yml | 13 +++---------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b853d10fdf5..7cd33b20d84 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,6 +41,18 @@ jobs: with: node-version: '10.x' + - name: Download RH + shell: pwsh + run: | + Invoke-WebRequest -Uri http://www.angusj.com/resourcehacker/resource_hacker.zip -OutFile "resource_hacker.zip" + Expand-Archive -Path resource_hacker.zip -DestinationPath scripts/resource_hacker + + - name: Debugging Path + shell: pwsh + run: | + echo "D:\a\cli\cli\scripts\resource_hacker" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + echo $env:GITHUB_PATH + - name: Set PACKAGE_VERSION & VER_INFO run: | $env:pkgVersion = (Get-Content -Raw -Path .\package.json | ConvertFrom-Json).version diff --git a/.github/workflows/exp.yml b/.github/workflows/exp.yml index 6f074bd621a..00f48eb1788 100644 --- a/.github/workflows/exp.yml +++ b/.github/workflows/exp.yml @@ -19,20 +19,13 @@ jobs: - name: Download RH shell: pwsh run: | - Invoke-WebRequest -Uri http://www.angusj.com/resourcehacker/resource_hacker.zip -OutFile "resource_hacker.zip" - Expand-Archive -Path resource_hacker.zip -DestinationPath resource_hacker - - - name: List RH - run: dir resource_hacker - - - name: Get Current Directory - shell: pwsh - run: Get-Location + Invoke-WebRequest -Uri http://www.angusj.com/resourcehacker/resource_hacker.zip -OutFile "scripts\resource_hacker.zip" + Expand-Archive -Path "scripts\resource_hacker.zip" -DestinationPath scripts\resource_hacker - name: Debugging Path shell: pwsh run: | - echo "D:\a\cli\cli\resource_hacker" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + echo "D:\a\cli\cli\scripts\resource_hacker" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append echo $env:GITHUB_PATH - name: ResourceHacker Test