Skip to content

Commit

Permalink
Update workflow dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Dcrammer777 committed Oct 20, 2023
1 parent 789db93 commit 76bb94c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/wf1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
REPOS=$(curl -H "Authorization: token $TOKEN" \
-H "Accept: application/vnd.github.mercy-preview+json" \
https://api.github.com/search/repositories?q=topic:$TOPIC+org:$ORG \
| jq -r '.items[].full_name')
| jq -r '.items[].full_name' | tr '\n' ' ') # Convert newline to space
echo "REPOS=$REPOS" >> $GITHUB_ENV
env:
TOKEN: ${{ secrets.GH_PAT }}
Expand All @@ -32,7 +32,10 @@ jobs:
git config user.email "actions@github.com"
git config user.name "GitHub Actions"
for repo in ${{ steps.fetch-repos.outputs.repos }}; do
# Convert space-separated list back to array
IFS=' ' read -ra REPO_ARRAY <<< "$REPOS"
for repo in "${REPO_ARRAY[@]}"; do
git clone "https://$TOKEN:x-oauth-basic@github.com/$repo.git"
# Create the .github/workflows directory if it doesn't exist
Expand Down

0 comments on commit 76bb94c

Please sign in to comment.