Skip to content

Commit

Permalink
ci: try to specify both branch and pull-request input
Browse files Browse the repository at this point in the history
  • Loading branch information
phwt committed Oct 7, 2024
1 parent 5b8bc28 commit 071d2b4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,17 @@ jobs:
pull-request: ${{ github.event.number }}
disable-pr-comment: true

- name: Retrieve quality gate result
uses: ./
id: quality-gate-check-test-fail
with:
sonar-host-url: ${{ env.SONAR_HOST_URL }}
sonar-project-key: ${{ env.SONAR_PROJECT_KEY }}
sonar-token: ${{ secrets.SONAR_TOKEN }}
branch: ${{ github.event.pull_request.head.ref }}
pull-request: ${{ github.event.number }}
disable-pr-comment: true

- run: |
echo "${{ steps.quality-gate-check.outputs.project-status }}"
echo "${{ steps.quality-gate-check.outputs.quality-gate-result }}"
Expand Down

0 comments on commit 071d2b4

Please sign in to comment.