Skip to content

Commit 9302691

Browse files
committed
combined them
1 parent 829e428 commit 9302691

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/labels.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,4 @@ DYOC:
4040
Safety Concern:
4141
color: "FBCA04"
4242
description: "This poses a safety risk"
43+

.github/workflows/update-labels.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install dependencies
2323
run: |
2424
python -m pip install --upgrade pip
25-
pip install requests yq && sudo snap install yq
25+
pip install requests yq
2626
2727
- name: Get all repos in the organization
2828
env:
@@ -33,12 +33,9 @@ jobs:
3333
RESPONSE=$(curl -s \
3434
-H "Authorization: token $LABELS_PAT" \
3535
"https://api.github.com/orgs/$ORGANIZATION/repos?per_page=100")
36+
echo $REPOS
3637
REPOS=$(echo "$RESPONSE" | jq -r '.[].name')
3738
echo "REPOS=$REPOS" >> $GITHUB_ENV
38-
- name: Update Labels for All Repos
39-
env:
40-
LABELS_PAT: ${{ secrets.LABELS_PAT }}
41-
run: |
4239
LABELS=$(cat .github/labels.yml)
4340
echo $REPOS
4441
echo "$REPOS" | while IFS= read -r REPO; do

0 commit comments

Comments
 (0)