Skip to content

Commit

Permalink
Add GITHUB_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
ZzAve authored Jan 5, 2024
1 parent 2a1645f commit e419ec0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/list-readmes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Git credentials
run: echo "machine github.com login ${{ secrets.GITHUB_TOKEN }}" > ~/.netrc

- name: Get organization repositories
run: |
Expand All @@ -20,6 +18,8 @@ jobs:
echo "Current repo: $REPO_NAME"
REPOS=$(gh repo list $ORG_NAME --json name -q ".name != '$REPO_NAME'" --limit 1000)
echo "$REPOS" > repos.txt
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: List first line of README for each repository
run: |
Expand All @@ -30,3 +30,5 @@ jobs:
echo "Repository: $REPO_NAME - First Line of README: $README_FIRST_LINE"
echo "---"
done < repos.txt
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e419ec0

Please sign in to comment.