Skip to content

Commit

Permalink
Update ci.yml to add success status
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauravdarkslayer authored Sep 28, 2024
1 parent 535f3cc commit 312085e
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,22 @@ jobs:
- run: npm run build-library
- name: test
run: npm run test:ci


success_status:
needs: build
runs-on: ubuntu-latest
if: success() # Runs only if the previous jobs are successful
steps:
- name: Set GitHub commit status to success
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.repos.createCommitStatus({
owner: context.repo.owner,
repo: context.repo.repo,
sha: context.sha,
state: 'success',
description: 'CI passed',
context: 'CI build status'
})

0 comments on commit 312085e

Please sign in to comment.