mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
update input checks
This commit is contained in:
parent
38ac32825f
commit
11ffd41745
20
.github/actions/setup/action.yaml
vendored
20
.github/actions/setup/action.yaml
vendored
@ -5,20 +5,20 @@ inputs:
|
||||
python:
|
||||
required: false
|
||||
description: 'Install python.'
|
||||
default: true
|
||||
default: 'true'
|
||||
npm:
|
||||
required: false
|
||||
description: 'Install npm.'
|
||||
default: false
|
||||
default: 'false'
|
||||
|
||||
install:
|
||||
required: false
|
||||
description: 'Install the InvenTree requirements?'
|
||||
default: true
|
||||
default: 'true'
|
||||
update:
|
||||
required: false
|
||||
description: 'Should a full update cycle be run?'
|
||||
default: false
|
||||
default: 'false'
|
||||
|
||||
apt-dependency:
|
||||
required: false
|
||||
@ -35,17 +35,17 @@ runs:
|
||||
|
||||
# Python installs
|
||||
- name: Set up Python ${{ env.python_version }}
|
||||
if: ${{ inputs.python }} == true
|
||||
if: ${{ inputs.python }} == 'true'
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ env.python_version }}
|
||||
cache: pip
|
||||
- name: Install Base Python Dependencies
|
||||
if: ${{ inputs.python }} == true
|
||||
if: ${{ inputs.python }} == 'true'
|
||||
shell: bash
|
||||
run: |
|
||||
python3 -m pip install -U pip
|
||||
pip3 install invoke
|
||||
pip3 install invoke wheel
|
||||
- name: Install Specific Python Dependencies
|
||||
if: ${{ inputs.pip-dependency }}
|
||||
shell: bash
|
||||
@ -59,7 +59,7 @@ runs:
|
||||
node-version: ${{ env.node_version }}
|
||||
cache: 'npm'
|
||||
- name: Intall npm packages
|
||||
if: ${{ inputs.npm }} == true
|
||||
if: ${{ inputs.npm }} == 'true'
|
||||
shell: bash
|
||||
run: npm install
|
||||
|
||||
@ -76,10 +76,10 @@ runs:
|
||||
|
||||
# Invoke commands
|
||||
- name: Run invoke install
|
||||
if: ${{ inputs.install }} == true
|
||||
if: ${{ inputs.install }} == 'true'
|
||||
shell: bash
|
||||
run: invoke install
|
||||
- name: Run invoke update
|
||||
if: ${{ inputs.update }} == true
|
||||
if: ${{ inputs.update }} == 'true'
|
||||
shell: bash
|
||||
run: invoke update
|
||||
|
Loading…
Reference in New Issue
Block a user