Skip to content

Commit

Permalink
Update newcheck.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Rakshith B <[email protected]>
  • Loading branch information
Rakshithb1 authored Jan 16, 2024
1 parent cfc50b0 commit b77592f
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/newcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,10 @@ jobs:
- name: Add branch protection rule
run: |
REPO_NAMES=($REPO_NAMES)
BRANCH_NAMES=($BRANCH_NAMES)
CHECKS=($CHECKS)
for i in $(seq 0 $((${#REPO_NAMES[@]} - 1))); do
REPO_NAME=${REPO_NAMES[$i]}
BRANCH_NAME=${BRANCH_NAMES[$i]}
CHECK=${CHECKS[$i]}
for line in $(tail -n +2 .github/workflows/check.csv); do
REPO_NAME=$(echo $line | cut -d ',' -f 1)
BRANCH_NAME=$(echo $line | cut -d ',' -f 2)
CHECK=$(echo $line | cut -d ',' -f 3)
# Create a branch protection rule
curl -X PUT \
Expand All @@ -50,3 +46,4 @@ jobs:

0 comments on commit b77592f

Please sign in to comment.