Skip to content

Commit ead5651

Browse files
committed
ci: publish: update commit status
A 'Publish core' status is added that shows the result of the workflow: - a green check ('success') if the core is published successfully - a yellow dot ('pending') if the core is OK but not published (a PR) - a red cross ('failure') if an error occurred during the workflow
1 parent 957a7e6 commit ead5651

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/package_core.yml

+17
Original file line numberDiff line numberDiff line change
@@ -195,3 +195,20 @@ jobs:
195195
with:
196196
name: ${{ env.PACKAGE_INDEX_JSON }}
197197
path: ${{ env.PACKAGE_INDEX_JSON }}
198+
199+
set-final-status:
200+
name: Set workflow result
201+
runs-on: ubuntu-latest
202+
needs:
203+
- package-core
204+
- test-core
205+
- publish-artifacts
206+
if: ${{ success() || failure() || needs.publish-artifacts.result == 'skipped' }}
207+
permissions:
208+
statuses: write
209+
steps:
210+
- name: Set commit status
211+
uses: myrotvorets/[email protected]
212+
with:
213+
status: ${{ failed() && 'failure' || needs.publish-artifacts.result == 'skipped' && 'pending' || 'success' }}
214+
context: "Publish core"

0 commit comments

Comments
 (0)