File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 29
29
docs :
30
30
name : Docs 📕
31
31
uses : ./.github/workflows/run_docs.yml
32
+
33
+ success :
34
+ name : Pipeline Passed ✅
35
+ if : ${{ !cancelled() }}
36
+ runs-on : ubuntu-latest
37
+ needs :
38
+ - build
39
+ - package
40
+ - checks
41
+ - tests
42
+ - docs
43
+ steps :
44
+ - shell : pwsh
45
+ run : |
46
+ $checks = @{
47
+ "Checks" = "${{ needs.checks.result }}"
48
+ "Build" = "${{ needs.build.result }}"
49
+ "Tests" = "${{ needs.tests.result }}"
50
+ "Package" = "${{ needs.package.result }}"
51
+ "Docs" = "${{ needs.docs.result }}"
52
+ }
53
+
54
+ $exit = 0
55
+ $checks.GetEnumerator() | % {
56
+ $status = ($_.Value -eq "success") -or ($_.Value -eq "skipped")
57
+ Write-Host "[ $($status ? " OK " : "FAIL") ] $($_.Name)"
58
+ if (-not $status) {
59
+ $exit = 1
60
+ }
61
+ }
62
+
63
+ exit $exit
You can’t perform that action at this time.
0 commit comments