diff --git a/.github/workflows/newcheck.yml b/.github/workflows/newcheck.yml index 51acd35e10d..ddfcb085edd 100644 --- a/.github/workflows/newcheck.yml +++ b/.github/workflows/newcheck.yml @@ -24,18 +24,13 @@ jobs: BRANCH_NAME=$(echo $line | cut -d ',' -f 2) CHECK=$(echo $line | cut -d ',' -f 3) - 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/$REPO_NAME/branches/$BRANCH_NAME/protection/required_status_checks/contexts \ - -d '{"contexts":[\"$CHECK\"]}' - - - + set -x # Enable debugging + + 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/$REPO_NAME/branches/$BRANCH_NAME/protection/required_status_checks/contexts" \ + -d '{"contexts":["'$CHECK'"]}' done - - - -