Skip to content

Commit

Permalink
[ci-issues] Run Ci job issues
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Oct 21, 2021
1 parent 2185d5a commit 94a0311
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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: >
Expand Down

0 comments on commit 94a0311

Please sign in to comment.