Skip to content

Traffic

Traffic #14

Workflow file for this run

name: Traffic
on:
schedule:
- cron: "59 7 * * *"
workflow_dispatch:
permissions:
contents: write
concurrency:
group: traffic-badge
cancel-in-progress: false
jobs:
traffic:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
persist-credentials: false
- name: Collect traffic data
id: traffic
uses: yi-Xu-0100/traffic-to-badge@6e7656202ad370afe7e80465c32ee367324ab4fc # v1.4.0
with:
my_token: ${{ secrets.TRAFFIC_TOKEN }}
static_list: ${{ github.repository }}
- name: Push to traffic branch
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: ${{ steps.traffic.outputs.traffic_branch }}
publish_dir: ${{ steps.traffic.outputs.traffic_path }}
user_name: "github-actions[bot]"
user_email: "github-actions[bot]@users.noreply.github.com"
full_commit_message: "chore: update traffic data"