From 7983c376448b7c49fd5f1ecef0fa78d02aa9d86c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Gonz=C3=A1lez?= Date: Thu, 5 Oct 2023 15:17:11 +0100 Subject: [PATCH] Add workflow dispatch to the pipelines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tomás González --- .github/workflows/ci.yml | 2 +- .github/workflows/nightly.yml | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7b64736..efd5a07 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: build: diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index a86de7e..bca49d7 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -5,6 +5,11 @@ on: # Every night at midnight - cron: "0 0 * * *" workflow_dispatch: + inputs: + rev: + description: "Revision hash to run against" + required: false + default: "" jobs: dependencies: @@ -12,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: @@ -26,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: @@ -40,5 +49,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 + with: + ref: "${{ github.event.inputs.rev }}" - name: Execute tarpaulin run: ./tests/coverage.sh