Skip to content

Commit 897f194

Browse files
authored
[Model/Semantic Validation] Add job-summary artifact (#36614)
1 parent be01160 commit 897f194

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/swagger-modelvalidation-code.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,17 @@ jobs:
2020
uses: ./.github/actions/setup-node-install-deps
2121

2222
- name: Swagger Model Validation
23+
id: swagger-model-validation
2324
run: |
25+
echo "summary=$GITHUB_STEP_SUMMARY" >> "$GITHUB_OUTPUT"
2426
npm exec --no -- oav-runner examples
27+
28+
# Used by other workflows like set-status
29+
- name: Set job-summary artifact
30+
if: ${{ always() && steps.swagger-model-validation.outputs.summary }}
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: job-summary
34+
path: ${{ steps.swagger-model-validation.outputs.summary }}
35+
# If the file doesn't exist, just don't add the artifact
36+
if-no-files-found: ignore

.github/workflows/swagger-semanticvalidation-code.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,17 @@ jobs:
2020
uses: ./.github/actions/setup-node-install-deps
2121

2222
- name: Swagger Semantic Validation
23+
id: swagger-semantic-validation
2324
run: |
25+
echo "summary=$GITHUB_STEP_SUMMARY" >> "$GITHUB_OUTPUT"
2426
npm exec --no -- oav-runner specs
27+
28+
# Used by other workflows like set-status
29+
- name: Set job-summary artifact
30+
if: ${{ always() && steps.swagger-semantic-validation.outputs.summary }}
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: job-summary
34+
path: ${{ steps.swagger-semantic-validation.outputs.summary }}
35+
# If the file doesn't exist, just don't add the artifact
36+
if-no-files-found: ignore

0 commit comments

Comments
 (0)