Update Referrers List #106
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |