Skip to content

Commit

Permalink
Update and fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Dcrammer777 committed Oct 20, 2023
1 parent 8dcc2a2 commit 789db93
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/wf1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,20 @@ jobs:
run: |
REPOS=$(curl -H "Authorization: token $TOKEN" \
-H "Accept: application/vnd.github.mercy-preview+json" \
https://api.github.com/search/repositories?q=topic:wf1+org:$ORG \
https://api.github.com/search/repositories?q=topic:$TOPIC+org:$ORG \
| jq -r '.items[].full_name')
echo "::set-output name=repos::$REPOS"
echo "REPOS=$REPOS" >> $GITHUB_ENV
env:
TOKEN: ${{ secrets.GH_PAT }}
TOPIC: wf1
ORG: Galvanizer-Team

- name: Push to repositories with specific topic
run: |
# Configure Git Identity
git config user.email "actions@github.com"
git config user.name "GitHub Actions"
for repo in ${{ steps.fetch-repos.outputs.repos }}; do
git clone "https://$TOKEN:x-oauth-basic@github.com/$repo.git"
Expand Down

0 comments on commit 789db93

Please sign in to comment.