From 8eb6fc0c9582abff9f907a8b383fc71c2ec35ddc Mon Sep 17 00:00:00 2001
From: Pavel Vetokhin
Date: Sat, 16 Sep 2023 20:27:05 +0300
Subject: [PATCH] Two checks
---
.github/workflows/solution-sanity.yml | 26 ++++++++++++++++----------
1 file changed, 16 insertions(+), 10 deletions(-)
diff --git a/.github/workflows/solution-sanity.yml b/.github/workflows/solution-sanity.yml
index 8c07b844..ef308938 100644
--- a/.github/workflows/solution-sanity.yml
+++ b/.github/workflows/solution-sanity.yml
@@ -26,12 +26,24 @@ jobs:
with:
tools: python java
- id: codebase
-# run: ansible-playbook sources.yml -l lib:app
- run: echo foo
+ run: ansible-playbook sources.yml -l lib:app
working-directory: .dx
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ - uses: actions/github-script@v6.4.1
+ if: ${{ !cancelled() }}
+ with:
+ script: |
+ await github.rest.checks.create({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ head_sha: context.sha,
+ name: "Codebase inspection",
+ status: "completed",
+ conclusion: "${{ steps.codebase.outcome }}",
+ });
+
- id: binaries
run: >
ansible-playbook binaries.yml
@@ -45,17 +57,11 @@ jobs:
if: ${{ !cancelled() }}
with:
script: |
- const conclusion = '${{ steps.binaries.outcome }}'
await github.rest.checks.create({
owner: context.repo.owner,
repo: context.repo.repo,
head_sha: context.sha,
- name: "Pipeline status",
+ name: "Binaries construction",
status: "completed",
- conclusion: conclusion,
- output: {
- title: "Pipeline status",
- summary: `Codebase checks: ${{ steps.codebase.outcome }}
- Binaries checks: ${{ steps.binaries.outcome }}`
- }
+ conclusion: "${{ steps.binaries.outcome }}",
});