Skip to content

Commit

Permalink
Two checks
Browse files Browse the repository at this point in the history
  • Loading branch information
pavetok committed Sep 16, 2023
1 parent 7922cfd commit 8eb6fc0
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/solution-sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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
Expand All @@ -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 }}",
});

0 comments on commit 8eb6fc0

Please sign in to comment.