Skip to content

Commit 7983c37

Browse files
Add workflow dispatch to the pipelines
Signed-off-by: Tomás González <tomasagustin.gonzalezorlando@arm.com>
1 parent 689a88c commit 7983c37

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-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
build:

.github/workflows/nightly.yml

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

914
jobs:
1015
dependencies:
1116
name: Check for unused dependencies
1217
runs-on: ubuntu-latest
1318
steps:
1419
- uses: actions/checkout@v2
20+
with:
21+
ref: "${{ github.event.inputs.rev }}"
1522
- name: Install latest Rust
1623
uses: actions-rs/toolchain@v1
1724
with:
@@ -26,6 +33,8 @@ jobs:
2633
runs-on: ubuntu-latest
2734
steps:
2835
- uses: actions/checkout@v2
36+
with:
37+
ref: "${{ github.event.inputs.rev }}"
2938
- name: Install latest Rust
3039
uses: actions-rs/toolchain@v1
3140
with:
@@ -40,5 +49,7 @@ jobs:
4049
runs-on: ubuntu-latest
4150
steps:
4251
- uses: actions/checkout@v1
52+
with:
53+
ref: "${{ github.event.inputs.rev }}"
4354
- name: Execute tarpaulin
4455
run: ./tests/coverage.sh

0 commit comments

Comments
 (0)