Skip to content

Commit

Permalink
Add notices and warning for compilation success
Browse files Browse the repository at this point in the history
  • Loading branch information
Matteo Bongiovanni committed Dec 7, 2022
1 parent 08a18d9 commit 4437a73
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,28 @@ jobs:
- uses: actions/checkout@v3
- name: Compile interim report
run: make interim.pdf
- name: Show compilation failed
- name: Show compilation failed on status
uses: Sibz/github-status-action@v1
with:
authToken: ${{secrets.GITHUB_TOKEN}}
context: "Interim report compilation"
description: "Compilation failed"
state: "failure"
if: ${{ failure() }}
- name: Show compilation succeeded
- name: Warn that compilation failed
run: echo "::warning title=Interim report compilation report::Compilation failed"
if: ${{ failure() }}
- name: Show compilation succeeded on status
uses: Sibz/github-status-action@v1
with:
authToken: ${{secrets.GITHUB_TOKEN}}
context: "Interim report compilation"
description: "Interim report compiled"
state: "success"
if: ${{ success () }}
- name: Notice that compilation succeeded
run: echo "::notice title=Interim report compilation report::Compilation succeeded"
if: ${{ success () }}
- name: Upload report as artifact
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 4437a73

Please sign in to comment.