Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add an optional input for checkout so it can be skipped, if needed #504

Merged
merged 9 commits into from
Jun 12, 2024
10 changes: 10 additions & 0 deletions build-wheelhouse/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,21 @@ inputs:
default: true
type: boolean

checkout:
description: >
Whether to do a checkout step or not. If ``true``, the checkout step is performed.
If ``false``, the checkout is skipped allowing the workspace from a prior step to
be used unaltered. By default it is set to ``true``.
required: false
myoung301 marked this conversation as resolved.
Show resolved Hide resolved
default: true
type: boolean

runs:
using: "composite"
steps:

- name: "Install Git and clone project"
if: inputs.checkout == 'true'
myoung301 marked this conversation as resolved.
Show resolved Hide resolved
uses: actions/checkout@v4

- name: "Set up Python ${{ inputs.python-version }}"
Expand Down
Loading