From 94a0311f6b8fd75cf93c5a0738c5a46f6433194b Mon Sep 17 00:00:00 2001 From: Billy Chan Date: Thu, 21 Oct 2021 18:27:14 +0800 Subject: [PATCH] [ci-issues] Run Ci job issues --- .github/workflows/rust.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 4447793c85..382815d40c 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -202,10 +202,8 @@ jobs: args: > --manifest-path examples/${{ matrix.path }}/Cargo.toml - issues: name: Issues - if: "contains(github.event.head_commit.message, '[ci-issues]')" runs-on: ${{ matrix.os }} strategy: matrix: @@ -214,19 +212,25 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - id: log + run: echo "::set-output name=message::$(git log --no-merges -1 --oneline)" + + - if: "contains(steps.log.outputs.message, '[issues]')" + uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: stable override: true - - uses: actions-rs/cargo@v1 + - if: "contains(steps.log.outputs.message, '[issues]')" + uses: actions-rs/cargo@v1 with: command: build args: > --manifest-path issues/${{ matrix.path }}/Cargo.toml - - uses: actions-rs/cargo@v1 + - if: "contains(steps.log.outputs.message, '[issues]')" + uses: actions-rs/cargo@v1 with: command: test args: >