From 8a543f5dcded19294f9162ffa8e25ff0f12d763c Mon Sep 17 00:00:00 2001 From: so1ve Date: Mon, 4 Sep 2023 17:56:35 +0800 Subject: [PATCH] ci: update --- .github/workflows/autofix-ci.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/autofix-ci.yml b/.github/workflows/autofix-ci.yml index f06d838..6b2a131 100644 --- a/.github/workflows/autofix-ci.yml +++ b/.github/workflows/autofix-ci.yml @@ -12,9 +12,25 @@ jobs: autofix: runs-on: windows-latest steps: - - uses: actions/checkout@v3 + - name: Checkout Bucket + uses: actions/checkout@v3 + with: + fetch-depth: 2 + path: 'my_bucket' + - name: Checkout Scoop + uses: actions/checkout@v3 + with: + repository: ScoopInstaller/Scoop + path: 'scoop_core' - name: Format shell: pwsh run: | - .\bin\formatjson.ps1 + $env:SCOOP_HOME="$(Resolve-Path '.\scoop_core')" + .\my_bucket\bin\formatjson.ps1 + - name: Cleanup + shell: pwsh + run: | + Copy-Item -Path "./my_bucket/*" -Destination "./" -Recurse + Remove-Item -Path "./my_bucket" -Recurse + Remove-Item -Path "./scoop_core" -Recurse - uses: autofix-ci/action@8bc06253bec489732e5f9c52884c7cace15c0160