forked from GoogleCloudPlatform/magic-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
24 lines (23 loc) · 914 Bytes
/
docker-image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: update-breaking-change-status
on:
pull_request:
types:
- labeled
jobs:
update-breaking-change-status:
if: github.event.label.id == '4598495472' # The unique identifier for the override-breaking-change label.. used in place of name so the name can be modified without breaking usage
runs-on: ubuntu-latest
permissions:
pull-requests: read
statuses: write
steps:
- uses: actions/checkout@v2
- run: |
curl -X POST -H "Authorization: token ${{secrets.GITHUB_TOKEN}}" \
-H "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/GoogleCloudPlatform/magic-modules/statuses/${{github.event.pull_request.head.sha || github.sha}}" \
-d '{
"context": "terraform-provider-breaking-change-test",
"target_url": "https://console.cloud.google.com/cloud-build/builds",
"state": "success"
}'