Skip to content

Commit

Permalink
Merge pull request #1785 from GaloisInc/ci_docs_token
Browse files Browse the repository at this point in the history
Use GITHUB_TOKEN secret when fetching to avoid rate limiting
  • Loading branch information
kquick authored Jan 3, 2025
2 parents 8406878 + 0d859f2 commit 603b7fa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,12 @@ jobs:
- name: tags and pull requests
shell: bash
run: |
curl ${{ github.api_url }}/repos/${{ github.repository }}/pulls > pulls.json
curl --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
${{ github.api_url }}/repos/${{ github.repository }}/pulls > pulls.json
head -n30 pulls.json
echo There are $(cat pulls.json | nix run nixpkgs#jq -- length) pull requests
curl ${{ github.api_url }}/repos/${{ github.repository }}/tags > tags.json
curl --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
${{ github.api_url }}/repos/${{ github.repository }}/tags > tags.json
head -n30 tags.json
echo There are $(cat tags.json | nix run nixpkgs#jq -- length) tags
- name: checkout all doc versions
Expand Down

0 comments on commit 603b7fa

Please sign in to comment.