Skip to content

Commit

Permalink
ci(actions): update Coverage action
Browse files Browse the repository at this point in the history
  • Loading branch information
NedcloarBR committed Apr 4, 2024
1 parent 45b48e3 commit d40acf2
Show file tree
Hide file tree
Showing 2 changed files with 778 additions and 782 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/Coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
mv ../coverage/index.html .
- name: Create Pull Request
id: "open-pr"
uses: peter-evans/create-pull-request@v6
with:
commit-message: "feat: Add test coverage report"
Expand All @@ -58,14 +59,9 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Merge PR
uses: actions/github-script@v7
with:
script: |
github.pulls.merge({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.pull_request.number
})
run: gh pr merge --merge --auto ${{ steps.open-pr.outputs.pr_number }}
env:
token: ${{ secrets.GITHUB_TOKEN }}

- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
Expand Down
Loading

0 comments on commit d40acf2

Please sign in to comment.