Skip to content

Commit

Permalink
booleans
Browse files Browse the repository at this point in the history
  • Loading branch information
atalman committed Nov 21, 2024
1 parent 10fb3fa commit 14008c4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/actions/setup-binary-builds/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ inputs:
use-github-checkout:
description: One of the parameter used by pkg-helpers
required: false
type: string
default: 'true'
type: boolean
default: true

runs:
using: composite
Expand All @@ -53,21 +53,20 @@ runs:
shell: bash
env:
REPOSITORY: ${{ inputs.repository }}
USE_GITHUB_CHECKOUT: ${{ inputs.use-github-checkout }}
run: |
set -euxo pipefail
rm -rf "${REPOSITORY}"
- uses: actions/checkout@v4
if: ${{ fromJSON(env.USE_GITHUB_CHECKOUT) }}
if: ${{ inputs.use-github-checkout == 'true' }}
with:
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}
submodules: ${{ inputs.submodules }}
path: ${{ inputs.repository }}

- uses: atalman/checkout-action@main
if: ${{ !fromJSON(env.USE_GITHUB_CHECKOUT) }}
if: ${{ inputs.use-github-checkout == 'false' }}
with:
repository: ${{ inputs.repository }}
path: ${{ inputs.repository }}
Expand Down

0 comments on commit 14008c4

Please sign in to comment.