diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a24c060..5379696 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,6 +7,12 @@ on: schedule: # Run weekly (* is a special character in YAML, so quote the string) - cron: '0 0 * * 0' + workflow_dispatch: + inputs: + # When git-ref is empty, HEAD will be checked out. + git-ref: + description: Optional git ref (branch, tag, or full SHA) + required: false jobs: build: @@ -20,6 +26,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + with: + # When the ref is empty, HEAD will be checked out. + ref: ${{ github.event.inputs.git-ref }} - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v1