Skip to content

Commit de86669

Browse files
Merge pull request #170 from tgonzalezorlandoarm/tg/ci-workflow-dispatch
ci: Add workflow dispatch
2 parents 3e7f29e + 7ee058a commit de86669

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Continuous Integration
22

3-
on: [push, pull_request]
3+
on: [push, pull_request, workflow_dispatch]
44

55
jobs:
66
# Use the following command to fix words locally:

.github/workflows/nightly.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,21 @@ on:
44
schedule:
55
# Every night at midnight
66
- cron: '0 0 * * *'
7+
workflow_dispatch:
8+
inputs:
9+
rev:
10+
description: "Revision hash to run against"
11+
required: false
12+
default: ""
713

814
jobs:
915
dependencies:
1016
name: Check for unused dependencies
1117
runs-on: ubuntu-latest
1218
steps:
1319
- uses: actions/checkout@v2
20+
with:
21+
ref: "${{ github.event.inputs.rev }}"
1422
- name: Install latest Rust
1523
uses: actions-rs/toolchain@v1
1624
with:
@@ -25,6 +33,8 @@ jobs:
2533
runs-on: ubuntu-latest
2634
steps:
2735
- uses: actions/checkout@v2
36+
with:
37+
ref: "${{ github.event.inputs.rev }}"
2838
- name: Install latest Rust
2939
uses: actions-rs/toolchain@v1
3040
with:

0 commit comments

Comments
 (0)