From 2cef6fb01ee74c43e86bc35ce14dc122b96c07e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Gonz=C3=A1lez?= Date: Thu, 28 Sep 2023 11:57:58 +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 0601ca3..60457a8 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-1-60-0: diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 156c2f7..03aa224 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@v3 + with: + ref: "${{ github.event.inputs.rev }}" - name: Install latest Rust uses: actions-rust-lang/setup-rust-toolchain@v1 with: @@ -27,6 +35,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + with: + ref: "${{ github.event.inputs.rev }}" - name: Install latest Rust uses: actions-rust-lang/setup-rust-toolchain@v1 with: