|
20 | 20 | type: boolean |
21 | 21 |
|
22 | 22 | jobs: |
23 | | - start-comment: |
24 | | - name: Post Start Comment π¬ |
25 | | - if: ${{ inputs.post_result }} |
| 23 | + start: |
| 24 | + name: Pipeline Start |
26 | 25 | runs-on: ubuntu-latest |
| 26 | + if: ${{ inputs.post_result }} |
27 | 27 | steps: |
28 | 28 | - uses: thollander/actions-comment-pull-request@v3.0.1 |
29 | 29 | with: |
@@ -53,17 +53,34 @@ jobs: |
53 | 53 | name: Docs π |
54 | 54 | uses: ./.github/workflows/run_docs.yml |
55 | 55 |
|
56 | | - success: |
| 56 | + complete: |
57 | 57 | name: Pipeline Passed β
|
58 | 58 | if: ${{ !cancelled() }} |
59 | 59 | runs-on: ubuntu-latest |
60 | 60 | needs: |
| 61 | + - start |
61 | 62 | - build |
62 | 63 | - checks |
63 | 64 | - tests |
64 | 65 | - docs |
65 | 66 | steps: |
| 67 | + - uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1 |
| 68 | + if: ${{ inputs.post_result }} |
| 69 | + with: |
| 70 | + pr-number: ${{ inputs.pr_number || github.event.pull_request.number }} |
| 71 | + comment-tag: ci-status |
| 72 | + mode: upsert |
| 73 | + message: | |
| 74 | + CI has finished: |
| 75 | + - π Checks: ${{ needs.checks.result && 'β
' || 'β' }} |
| 76 | + - π οΈ Build: ${{ needs.build.result && 'β
' || 'β' }} |
| 77 | + - π§ͺ Tests: ${{ needs.tests.result && 'β
' || 'β' }} |
| 78 | + - π Docs: ${{ needs.docs.result && 'β
' || 'β' }} |
| 79 | +
|
| 80 | + [See the logs here](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) |
66 | 81 | - shell: pwsh |
| 82 | + env: |
| 83 | + GH_TOKEN: ${{ github.token }} |
67 | 84 | run: | |
68 | 85 | $checks = @{ |
69 | 86 | "Checks" = "${{ needs.checks.result }}" |
|
82 | 99 | } |
83 | 100 |
|
84 | 101 | exit $exit |
85 | | -
|
86 | | - finish-comment: |
87 | | - name: Post Finish Comment π¬ |
88 | | - if: ${{ inputs.post_result }} |
89 | | - needs: |
90 | | - - start-comment |
91 | | - - build |
92 | | - - checks |
93 | | - - tests |
94 | | - - docs |
95 | | - runs-on: ubuntu-latest |
96 | | - steps: |
97 | | - - uses: thollander/actions-comment-pull-request@v3.0.1 |
98 | | - with: |
99 | | - pr-number: ${{ inputs.pr_number || github.event.pull_request.number }} |
100 | | - comment-tag: ci-status |
101 | | - mode: upsert |
102 | | - message: | |
103 | | - CI has finished: |
104 | | - - π Checks: ${{ needs.checks.result && 'β
' || 'β' }} |
105 | | - - π οΈ Build: ${{ needs.build.result && 'β
' || 'β' }} |
106 | | - - π§ͺ Tests: ${{ needs.tests.result && 'β
' || 'β' }} |
107 | | - - π Docs: ${{ needs.docs.result && 'β
' || 'β' }} |
108 | | -
|
109 | | - [See the logs here](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) |
0 commit comments