Skip to content

Commit

Permalink
Merge pull request #215 from grc-iit/repo-traffic-data
Browse files Browse the repository at this point in the history
Create repository-traffic.yml
  • Loading branch information
ibrodkin authored Nov 6, 2024
2 parents af91b48 + cbc918c commit a12ae73
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/repository-traffic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Repository 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/[email protected]
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"

0 comments on commit a12ae73

Please sign in to comment.