Skip to content

Commit

Permalink
Merge pull request #29 from Gauravdarkslayer/Gauravdarkslayer-patch-1
Browse files Browse the repository at this point in the history
Update ci.yml to add success status
  • Loading branch information
Gauravdarkslayer authored Sep 28, 2024
2 parents 535f3cc + 3555e19 commit eca488d
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,27 @@ jobs:
- run: npm ci
- name: lint
run: npm run lint
- run: npm run build-library
- name: test
run: npm run test:ci

success_status:
needs: build
runs-on: ubuntu-latest
if: success()
steps:
- name: Set GitHub commit status to success
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { owner, repo } = context.repo;
const sha = context.sha;
await github.rest.repos.createCommitStatus({
owner,
repo,
sha,
state: 'success',
description: 'CI passed successfully',
context: 'CI',
});

0 comments on commit eca488d

Please sign in to comment.