repository traffic #86
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: repository traffic | |
on: | |
schedule: | |
- cron: "55 23 * * 0" | |
jobs: | |
traffic: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
with: | |
ref: "traffic" | |
# Calculates traffic and clones and stores in CSV file | |
- name: GitHub traffic | |
uses: sangonzal/[email protected] | |
env: | |
TRAFFIC_ACTION_TOKEN: ${{ secrets.TRAFFIC_ACTION_TOKEN }} | |
# Commits files to repository | |
- name: Commit data | |
uses: EndBug/add-and-commit@v4 | |
with: | |
author_name: debevv | |
message: "GitHub traffic" | |
add: "./traffic/*" | |
ref: "traffic" # commits to branch "traffic" |