Skip to content

Commit

Permalink
Merge pull request #23 from secondlife/signal/bool
Browse files Browse the repository at this point in the history
Bool inputs always truthy
  • Loading branch information
bennettgoble committed Mar 28, 2023
2 parents 6a7c949 + fb5fc81 commit 378b0e3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
checkout: false

- shell: bash
run : rm -rf stage
run: rm -rf stage

- uses: ./
with:
Expand All @@ -44,3 +44,16 @@ jobs:
with:
autobuild-version: main
checkout: false

# Test custom python version
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: ./
with:
setup-python: false
- name: Check python version
shell: bash
run: |
ver="$(python --version)"
[[ "$ver" == "Python 3.10."* ]] || exit "Expected python 3.10, got $ver"
6 changes: 3 additions & 3 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,23 +109,23 @@ runs:
- name: Checkout build variables
uses: actions/checkout@v3
if: inputs.checkout-build-variables
if: ${{ fromJSON(inputs.checkout-build-variables) }}
with:
repository: secondlife/build-variables
ref: ${{ inputs.build-variables-ref }}
path: .build-variables

- name: Setup python
uses: actions/setup-python@v4
if: inputs.setup-python
if: ${{ fromJSON(inputs.setup-python) }}
with:
python-version: 3.x

- name: Setup autobuild
shell: bash
env:
VERSION: ${{ inputs.autobuild-version }}
if: inputs.setup-autobuild
if: ${{ fromJSON(inputs.setup-autobuild) }}
run: |
if [[ $VERSION = *.*.* ]]; then
pip install autobuild==$VERSION
Expand Down

0 comments on commit 378b0e3

Please sign in to comment.