From 16ca1e25eb5855dcef27777283cf7767583dc6ca Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Fri, 30 Jun 2023 11:24:14 +0100 Subject: [PATCH] Allow checkout ref to be customized --- .github/workflows/publish.yml | 6 ++++++ .github/workflows/publish_pure_python.yml | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9083771..d4e20bc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 @@ -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 diff --git a/.github/workflows/publish_pure_python.yml b/.github/workflows/publish_pure_python.yml index 0a49e96..f7da1d7 100644 --- a/.github/workflows/publish_pure_python.yml +++ b/.github/workflows/publish_pure_python.yml @@ -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: @@ -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