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 }}", });