msrv: only send a message on failure during the actual msrv part (#7532)
# Objective - In case of a CI failure before the MSRV check, like installing linux dependencies, a comment was still added to the PR ## Solution - Check that the actual MSRV step failed
This commit is contained in:
parent
2e20d04f32
commit
0cbb9f72bd
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@ -332,14 +332,15 @@ jobs:
|
||||
- name: Install alsa and udev
|
||||
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
|
||||
- name: Run cargo check
|
||||
id: check
|
||||
run: cargo check
|
||||
- name: Save PR number
|
||||
if: ${{ failure() && github.event_name == 'pull_request' }}
|
||||
if: ${{ failure() && github.event_name == 'pull_request' && steps.check.conclusion == 'failure' }}
|
||||
run: |
|
||||
mkdir -p ./msrv
|
||||
echo ${{ github.event.number }} > ./msrv/NR
|
||||
- uses: actions/upload-artifact@v2
|
||||
if: ${{ failure() && github.event_name == 'pull_request' }}
|
||||
if: ${{ failure() && github.event_name == 'pull_request' && steps.check.conclusion == 'failure' }}
|
||||
with:
|
||||
name: msrv
|
||||
path: msrv/
|
||||
|
Loading…
Reference in New Issue
Block a user