Moved Input Parsing
It looks like it may have been too late and not getting parsed?
This commit is contained in:
parent
56c92d39ed
commit
5c2d838b6d
|
@ -13,6 +13,12 @@ inputs:
|
|||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- name: 'Parse Project Filters'
|
||||
id: 'project-filters'
|
||||
shell: 'bash'
|
||||
run: |
|
||||
echo "install=$(node ./.github/actions/setup-woocommerce-monorepo/scripts/parse-input-filter.js '${{ inputs.install }}')" >> $GITHUB_OUTPUT
|
||||
echo "build=$(node ./.github/actions/setup-woocommerce-monorepo/scripts/parse-input-filter.js '${{ inputs.build }}')" >> $GITHUB_OUTPUT
|
||||
- name: 'Setup PNPM'
|
||||
uses: 'pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598'
|
||||
with:
|
||||
|
@ -40,12 +46,6 @@ runs:
|
|||
path: '~/.cache/composer/files'
|
||||
key: "${{ runner.os }}-composer-${{ hashFiles( '**/composer.lock' ) }}"
|
||||
restore-keys: '${{ runner.os }}-composer-'
|
||||
- name: 'Parse Project Filters'
|
||||
id: 'project-filters'
|
||||
shell: 'bash'
|
||||
run: |
|
||||
echo "install=$(node ./.github/actions/setup-woocommerce-monorepo/scripts/parse-input-filter.js '${{ inputs.install }}')" >> $GITHUB_OUTPUT
|
||||
echo "build=$(node ./.github/actions/setup-woocommerce-monorepo/scripts/parse-input-filter.js '${{ inputs.build }}')" >> $GITHUB_OUTPUT
|
||||
- name: 'Install Project Dependencies'
|
||||
# Boolean inputs aren't parsed into filters so it'll either be "true" or there will be a filter.
|
||||
if: ${{ inputs.install == 'true' || steps.project-filters.outputs.install != '' }}
|
||||
|
|
Loading…
Reference in New Issue