diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c4112860b..da6749e36 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -211,20 +211,28 @@ jobs: path: [86, 249, 262] steps: - uses: actions/checkout@v2 + with: + fetch-depth: 0 - - uses: actions-rs/toolchain@v1 + - id: git-log + run: echo "::set-output name=message::$(git log --no-merges -1 --oneline)" + + - if: "contains(steps.git-log.outputs.message, '[issues]')" + uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: stable override: true - - uses: actions-rs/cargo@v1 + - if: "contains(steps.git-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.git-log.outputs.message, '[issues]')" + uses: actions-rs/cargo@v1 with: command: test args: >