Skip to content

Commit

Permalink
Update add-checks.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com>
  • Loading branch information
Rakshithb1 authored Jan 12, 2024
1 parent b3d1b1d commit c5ec4ee
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/add-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,9 @@ jobs:

- name: Add branch protection rule
run: |
curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $G_TOKEN" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks/contexts -d '{"contexts":["build-commons / maven-build","kernel-notification-service / build-dockers"]}'
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $G_TOKEN" \
-H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/Rakshithb1/commons/branches/develop/protection/required_status_checks/contexts \
-d '{"contexts":["build-commons / maven-build","kernel-notification-service / build-dockers"]}'

0 comments on commit c5ec4ee

Please sign in to comment.