Skip to content

Commit

Permalink
chore(fix): composite action inputs type
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed Nov 17, 2024
1 parent 754f05a commit cc8729c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ jobs:
- name: setup
uses: ./.github/workflows/shared/setup
with:
cache-readonly: true
turbo-cache: false
cache-readonly: 'true'
turbo-cache: 'false'

- name: e2e
run: yarn ci:e2e
Expand Down Expand Up @@ -134,8 +134,8 @@ jobs:
- name: setup
uses: ./.github/workflows/shared/setup
with:
cache-readonly: true
turbo-cache: false
cache-readonly: 'true'
turbo-cache: 'false'

- name: build
run: yarn doc:build
2 changes: 1 addition & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: setup
uses: ./.github/workflows/shared/setup
with:
turbo-cache: false
turbo-cache: 'false'

- name: build
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: setup
uses: ./.github/workflows/shared/setup
with:
turbo-cache: false
turbo-cache: 'false'

- name: build
run: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/shared/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: setup

inputs:
turbo-cache:
default: true
default: 'true'
cache-readonly:
default: false
default: 'false'

runs:
using: composite
Expand All @@ -23,21 +23,21 @@ runs:
- name: yarn cache
uses: actions/cache@v4
if: ${{ !inputs.cache-readonly && !startsWith(github.ref_name, 'dependabot') }}
if: ${{ inputs.cache-readonly != 'true' && !startsWith(github.ref_name, 'dependabot') }}
with:
key: yarn-${{ hashFiles('yarn.lock') }}
path: ${{ env.YARN_CACHE_DIR }}

- name: yarn cache ro
uses: actions/cache/restore@v4
if: ${{ inputs.cache-readonly || startsWith(github.ref_name, 'dependabot') }}
if: ${{ inputs.cache-readonly == 'true' || startsWith(github.ref_name, 'dependabot') }}
with:
key: yarn-${{ hashFiles('yarn.lock') }}
path: ${{ env.YARN_CACHE_DIR }}

- name: turbo cache
uses: actions/cache@v4
if: ${{ inputs.turbo-cache && !inputs.cache-readonly && !startsWith(github.ref_name, 'dependabot') }}
if: ${{ inputs.turbo-cache == 'true' && !inputs.cache-readonly != 'true && !startsWith(github.ref_name, 'dependabot') }}
with:
path: .turbo
key: turbo-${{ github.sha }}
Expand All @@ -46,7 +46,7 @@ runs:
- name: turbo cache ro
uses: actions/cache/restore@v4
if: ${{ inputs.turbo-cache && (inputs.cache-readonly || startsWith(github.ref_name, 'dependabot')) }}
if: ${{ inputs.turbo-cache == 'true' && (inputs.cache-readonly == 'true || startsWith(github.ref_name, 'dependabot')) }}
with:
path: .turbo
key: turbo-${{ github.sha }}
Expand Down

0 comments on commit cc8729c

Please sign in to comment.