From 7ee058a59c40d1fb34399080e54b1faceccc1dab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Gonz=C3=A1lez?= Date: Thu, 28 Sep 2023 11:51:26 +0100 Subject: [PATCH] ci: Add workflow dispatch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For running ci builds on particular branches/revs. Signed-off-by: Tomás González --- .github/workflows/ci.yml | 2 +- .github/workflows/nightly.yml | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a19a0483..1e1e4ce4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 0e6921c9..64fe3865 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -4,6 +4,12 @@ on: schedule: # Every night at midnight - cron: '0 0 * * *' + workflow_dispatch: + inputs: + rev: + description: "Revision hash to run against" + required: false + default: "" jobs: dependencies: @@ -11,6 +17,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: @@ -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: