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 cdca8d3
Show file tree
Hide file tree
Showing 2 changed files with 12 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
6 changes: 6 additions & 0 deletions .github/workflows/publish_pure_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ on:
required: false
default: '3.x'
type: string
checkout_ref:
description: The ref to checkout
required: false
default: ''
type: string
secrets:
pypi_token:
required: false
Expand Down Expand Up @@ -105,6 +110,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 cdca8d3

Please sign in to comment.