Skip to content

Commit b4d867e

Browse files
Merge pull request #104 from tgonzalezorlandoarm/tg/ci-workflow-dispatch
ci: Add workflow dispatch
2 parents fbbe42a + 1354de4 commit b4d867e

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
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
build:

.github/workflows/nightly.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,20 @@ on:
44
schedule:
55
# Every night at midnight
66
- cron: '0 0 * * *'
7-
7+
workflow_dispatch:
8+
inputs:
9+
rev:
10+
description: "Revision hash to run against"
11+
required: false
12+
default: ""
813
jobs:
914
dependencies:
1015
name: Check for unused dependencies
1116
runs-on: ubuntu-latest
1217
steps:
1318
- uses: actions/checkout@v2
19+
with:
20+
ref: "${{ github.event.inputs.rev }}"
1421
- name: Install latest Rust
1522
uses: actions-rs/toolchain@v1
1623
with:
@@ -25,6 +32,8 @@ jobs:
2532
runs-on: ubuntu-latest
2633
steps:
2734
- uses: actions/checkout@v2
35+
with:
36+
ref: "${{ github.event.inputs.rev }}"
2837
- name: Install latest Rust
2938
uses: actions-rs/toolchain@v1
3039
with:

0 commit comments

Comments
 (0)