ChronoLog: Collect Traffic #9
This file contains hidden or 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: "ChronoLog: Collect Traffic" | |
| on: | |
| schedule: | |
| # Runs every Sunday at 11:55 PM UTC | |
| - cron: "55 23 * * 0" | |
| workflow_dispatch: | |
| jobs: | |
| traffic: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checkout the repository | |
| - uses: actions/checkout@v2 | |
| # Calculate traffic and clones and store in CSV file | |
| - name: Repository Traffic | |
| uses: sangonzal/repository-traffic-action@v.0.1.6 | |
| env: | |
| TRAFFIC_ACTION_TOKEN: ${{ secrets.TRAFFIC_ACTION_TOKEN }} | |
| # Commit changes to the repository | |
| - name: Commit changes | |
| uses: EndBug/add-and-commit@v4 | |
| with: | |
| author_name: EnekoGonzalez | |
| message: "Update GitHub traffic data" | |
| add: "./repo-traffic-data/*" | |
| ref: "repo-traffic-data" # commits to branch "traffic" |