diff --git a/.github/workflows/validate-binaries.yml b/.github/workflows/validate-binaries.yml index 6640eea03..ed8dbe695 100644 --- a/.github/workflows/validate-binaries.yml +++ b/.github/workflows/validate-binaries.yml @@ -17,6 +17,11 @@ on: description: "Channel to use (nightly, test, release, all)" required: true type: string + ref: + description: 'Reference to checkout, defaults to empty' + default: "" + required: false + type: string workflow_dispatch: inputs: os: @@ -39,6 +44,11 @@ on: - nightly - test - all + ref: + description: 'Reference to checkout, defaults to empty' + default: "" + required: false + type: string jobs: win: @@ -46,6 +56,7 @@ jobs: uses: ./.github/workflows/validate-windows-binaries.yml with: channel: ${{ inputs.channel }} + ref: ${{ inputs.ref || github.ref }} linux: if: inputs.os == 'linux' || inputs.os == 'all' diff --git a/.github/workflows/validate-windows-binaries.yml b/.github/workflows/validate-windows-binaries.yml index 328c7d7be..7ab7bf3b2 100644 --- a/.github/workflows/validate-windows-binaries.yml +++ b/.github/workflows/validate-windows-binaries.yml @@ -7,6 +7,11 @@ on: description: "Channel to use (nightly, test, release, all)" required: true type: string + ref: + description: 'Reference to checkout, defaults to empty' + default: "" + required: false + type: string workflow_dispatch: inputs: channel: @@ -18,6 +23,11 @@ on: - nightly - test - all + ref: + description: 'Reference to checkout, defaults to empty' + default: "" + required: false + type: string jobs: generate-windows-matrix: @@ -37,6 +47,7 @@ jobs: with: runner: ${{ matrix.validation_runner }} repository: "pytorch/builder" + ref: ${{ inputs.ref || github.ref }} job-name: ${{ matrix.build_name }} script: | set -ex