Skip to content

Commit

Permalink
Add manual triggering.
Browse files Browse the repository at this point in the history
  • Loading branch information
dstein64 committed May 28, 2021
1 parent 5391bcb commit 34578b6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 34578b6

Please sign in to comment.