Skip to content

Update Referrers List #116

Update Referrers List

Update Referrers List #116

name: Update Referrers List
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
jobs:
update-referrers:
permissions: write-all
runs-on: ubuntu-latest
steps:
# Clone the repository
- name: Clone Referrers Branch
uses: actions/checkout@v4
with:
ref: referrers
- name: Get Referrers
run: |
gh api -H "Accept: application/vnd.github+json" 'https://api.github.com/repos/radj307/volume-control/traffic/popular/referrers' >> '${{ github.workspace }}/README.md'
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
- name: Commit Changes
run: |
git config user.name github-actions
git config user.email [email protected]
git add -A && git commit -m "Update Referrers List"
git push