Skip to content

Commit

Permalink
Try skip CI job issues
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Oct 21, 2021
1 parent e911d2f commit d10a52c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: >
Expand Down

0 comments on commit d10a52c

Please sign in to comment.