Skip to content

Commit

Permalink
token
Browse files Browse the repository at this point in the history
  • Loading branch information
bedroesb committed Apr 30, 2024
1 parent c751ac5 commit f1d1953
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@ on:
# Run every Monday at 00:00 UTC
- cron: '0 0 * * 1'


permissions: write-all

jobs:
update-stats:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2
Expand All @@ -23,7 +19,7 @@ jobs:
# Fetch GitHub stats using API
curl -L \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "Authorization: Bearer ${{ secrets.USER_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/ELIXIR-Belgium/elixir-toolkit-theme/traffic/clones > clones-stats.json
cat clones-stats.json
Expand All @@ -33,7 +29,7 @@ jobs:
run: |
curl -L \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "Authorization: Bearer ${{ secrets.USER_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/ELIXIR-Belgium/elixir-toolkit-theme/traffic/views > views-stats.json
cat views-stats.json
Expand Down

0 comments on commit f1d1953

Please sign in to comment.