Skip to content

Commit

Permalink
Merge pull request #142 from astrofrog/checkout-ref
Browse files Browse the repository at this point in the history
Allow checkout ref to be customized
  • Loading branch information
astrofrog authored Jul 6, 2023
2 parents 7bd2dbf + 10d6d72 commit 393d910
Show file tree
Hide file tree
Showing 3 changed files with 18 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
6 changes: 6 additions & 0 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ on:
required: false
default: true
type: boolean
checkout_ref:
description: The ref to checkout
required: false
default: ''
type: string
secrets:
CODECOV_TOKEN:
description: Codecov upload token (for private repositories only)
Expand Down Expand Up @@ -147,6 +152,7 @@ jobs:
fetch-depth: 0
lfs: true
submodules: ${{ inputs.submodules }}
ref: ${{ inputs.checkout_ref }}

- name: Cache ${{ matrix.cache_key }}
if: ${{ matrix.cache-path != '' && matrix.cache-key != '' }}
Expand Down

0 comments on commit 393d910

Please sign in to comment.