Skip to content

Commit 7baf9cc

Browse files
samialabedcopybara-github
authored andcommitted
Remove github status response and depend on Github actions instead
PiperOrigin-RevId: 745524682
1 parent 868b11c commit 7baf9cc

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,3 @@ jobs:
3939
uses: codecov/codecov-action@v1
4040
with:
4141
file: ./coverage.xml
42-
# The below step just reports the success or failure of tests as a "commit status".
43-
# This is needed for copybara integration.
44-
- name: Report success or failure as github status
45-
if: always()
46-
shell: bash
47-
run: |
48-
status="${{ job.status }}"
49-
lowercase_status=$(echo $status | tr '[:upper:]' '[:lower:]')
50-
curl -sS --request POST \
51-
--url https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }} \
52-
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
53-
--header 'content-type: application/json' \
54-
--data '{
55-
"state": "'$lowercase_status'",
56-
"target_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
57-
"description": "'$status'",
58-
"context": "github-actions/Build"
59-
}'

0 commit comments

Comments
 (0)