Skip to content

Update Referrers List #120

Update Referrers List

Update Referrers List #120

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