Skip to content

Commit

Permalink
Allow checkout ref to be customized
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Jun 30, 2023
1 parent 3ffba88 commit 16ca1e2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ on:
required: false
default: true
type: boolean
checkout_ref:
description: The ref to checkout
required: false
default: ''
type: string
secrets:
pypi_token:
required: false
Expand Down Expand Up @@ -138,6 +143,7 @@ jobs:
fetch-depth: 0
lfs: true
submodules: ${{ inputs.submodules }}
ref: ${{ inputs.checkout_ref }}
- name: Set up QEMU
if: ${{ matrix.CIBW_ARCHS == 'aarch64' }}
uses: docker/setup-qemu-action@v2
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/publish_pure_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ on:
description: The Python version to use for building and testing
required: false
default: '3.x'
checkout_ref:
description: The ref to checkout
required: false
default: ''
type: string
secrets:
pypi_token:
Expand Down Expand Up @@ -105,6 +109,7 @@ jobs:
fetch-depth: 0
lfs: true
submodules: ${{ inputs.submodules }}
ref: ${{ inputs.checkout_ref }}
- name: Install dependencies
if: ${{ inputs.libraries != '' }}
uses: ConorMacBride/install-package@main
Expand Down

0 comments on commit 16ca1e2

Please sign in to comment.