Skip to content

Commit

Permalink
Allow manually-triggered workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
dstein64 committed Sep 26, 2022
1 parent be76863 commit a25c84e
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 @@ -11,6 +11,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 @@ -27,6 +33,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: Install Dependencies (ubuntu)
if: matrix.os == 'ubuntu-latest'
Expand Down

0 comments on commit a25c84e

Please sign in to comment.