Skip to content

Commit

Permalink
Merge pull request #8 from FabianLars-crabnebula/patch-1
Browse files Browse the repository at this point in the history
fix: Disable cli caching
  • Loading branch information
lucasfernog-crabnebula authored Sep 25, 2024
2 parents d874050 + 88b5427 commit a9a9f7f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changes/disable-cli-caching.md
Original file line number Diff line number Diff line change
@@ -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.
22 changes: 11 additions & 11 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a9a9f7f

Please sign in to comment.