From c5ec4eeadf40f9587cca3a789de69f0c0657500f Mon Sep 17 00:00:00 2001 From: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> Date: Fri, 12 Jan 2024 21:03:47 +0530 Subject: [PATCH] Update add-checks.yml Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com> --- .github/workflows/add-checks.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/add-checks.yml b/.github/workflows/add-checks.yml index 553ca6fc6fd..f6b2c6cfcd3 100644 --- a/.github/workflows/add-checks.yml +++ b/.github/workflows/add-checks.yml @@ -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"]}'