Skip to content

Commit

Permalink
Update c-cpp.yml
Browse files Browse the repository at this point in the history
Added build status reporting back to github
  • Loading branch information
deepakraparti authored Feb 12, 2024
1 parent a08b877 commit 41f7ed6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,17 @@ jobs:
- uses: actions/checkout@v3
- name: make
run: make

- uses: actions/github-script@v5
- name: Report success status
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.repos.createStatus({
owner: context.repo.owner,
repo: context.repo.repo,
sha: context.sha,
state: "success",
description: "Build succeeded",
context: "continuous-integration/build"
})

0 comments on commit 41f7ed6

Please sign in to comment.