Skip to content

Commit

Permalink
ci: Add workflow dispatch
Browse files Browse the repository at this point in the history
For running ci builds on particular branches/revs.

Signed-off-by: Tomás González <[email protected]>
  • Loading branch information
tgonzalezorlandoarm committed Oct 2, 2023
1 parent 3e7f29e commit 7ee058a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Continuous Integration

on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]

jobs:
# Use the following command to fix words locally:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,21 @@ on:
schedule:
# Every night at midnight
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
rev:
description: "Revision hash to run against"
required: false
default: ""

jobs:
dependencies:
name: Check for unused dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: "${{ github.event.inputs.rev }}"
- name: Install latest Rust
uses: actions-rs/toolchain@v1
with:
Expand All @@ -25,6 +33,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: "${{ github.event.inputs.rev }}"
- name: Install latest Rust
uses: actions-rs/toolchain@v1
with:
Expand Down

0 comments on commit 7ee058a

Please sign in to comment.