Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
5d committed Jan 9, 2024
1 parent caaa159 commit 333c775
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build_amplify_swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
type: string
default: 'macos-13'

cachable:
cacheable:
type: boolean
default: true

Expand All @@ -41,7 +41,7 @@ jobs:

- name: Attempt to use the dependencies cache
id: dependencies-cache
if: inputs.cachable
if: inputs.cacheable
timeout-minutes: 4
continue-on-error: true
uses: actions/cache/restore@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
Expand All @@ -53,7 +53,7 @@ jobs:
- name: Attempt to restore the build cache from main
id: build-cache
if: inputs.cachable
if: inputs.cacheable
timeout-minutes: 4
continue-on-error: true
uses: actions/cache/restore@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
Expand All @@ -75,22 +75,22 @@ jobs:
disable_package_resolution: ${{ steps.dependencies-cache.outputs.cache-hit }}

- name: Save the dependencies cache in main
if: inputs.cachable && steps.dependencies-cache.outputs.cache-hit != 'true' && github.ref_name == 'main'
if: inputs.cacheable && steps.dependencies-cache.outputs.cache-hit != 'true' && github.ref_name == 'main'
uses: actions/cache/save@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
with:
path: ~/Library/Developer/Xcode/DerivedData/Amplify
key: ${{ steps.dependencies-cache.outputs.cache-primary-key }}

- name: Delete the old build cache
if: inputs.cachable && steps.build-cache.outputs.cache-hit && github.ref_name == 'main'
if: inputs.cacheable && steps.build-cache.outputs.cache-hit && github.ref_name == 'main'
env:
GH_TOKEN: ${{ github.token }}
continue-on-error: true
run: |
gh cache delete ${{ steps.build-cache.outputs.cache-primary-key }}
- name: Save the build cache
if: inputs.cachable && github.ref_name == 'main'
if: inputs.cacheable && github.ref_name == 'main'
uses: actions/cache/save@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
with:
path: ${{ github.workspace }}/Build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
os-runner: ${{ matrix.os-runner }}
xcode-version: ${{ matrix.xcode-version }}
platform: ${{ matrix.platform }}
cachable: false
cacheable: false

confirm-pass:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 333c775

Please sign in to comment.