diff --git a/.changes/disable-cli-caching.md b/.changes/disable-cli-caching.md new file mode 100644 index 0000000..f1ae439 --- /dev/null +++ b/.changes/disable-cli-caching.md @@ -0,0 +1,5 @@ +--- +action: patch +--- + +Fixed an issue that caused the action to fail if there were multiple concurrent runners with the same OS. diff --git a/action.yml b/action.yml index b17af74..78f61e0 100644 --- a/action.yml +++ b/action.yml @@ -34,12 +34,12 @@ runs: if: runner.os == 'Windows' run: echo "CURRENT_DATE=$(Get-Date -Format "yyyy-MM-dd")" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - - name: Cache CLI - id: restore-cache - uses: actions/cache/restore@v4 - with: - path: ${{ inputs.path }}/cn - key: ${{ runner.os }}-${{ runner.arch }}-cn-${{ env.CURRENT_DATE }} +# - name: Cache CLI +# id: restore-cache +# uses: actions/cache/restore@v4 +# with: +# path: ${{ inputs.path }}/cn +# key: ${{ runner.os }}-${{ runner.arch }}-cn-${{ env.CURRENT_DATE }} - name: Download CLI (Linux) shell: bash @@ -74,11 +74,11 @@ runs: echo "Downloading CLI..." curl -L https://cdn.crabnebula.app/download/crabnebula/cn-cli/latest/platform/windows-binary-x86_64 --output cn - - uses: actions/cache/save@v4 - continue-on-error: true - with: - path: ${{ inputs.path }}/cn - key: ${{ steps.restore-cache.outputs.cache-primary-key }} +# - uses: actions/cache/save@v4 +# continue-on-error: true +# with: +# path: ${{ inputs.path }}/cn +# key: ${{ steps.restore-cache.outputs.cache-primary-key }} - name: "Run Command" id: run-command