-
Notifications
You must be signed in to change notification settings - Fork 75
33 lines (29 loc) · 990 Bytes
/
traffic.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Traffic
on:
schedule:
# Runs every week
- cron: "0 0 */7 * *"
jobs:
# This workflow stores repository traffic and clones past the default 2 week period
traffic:
# The type of runner that the job will run on
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 them in a CSV file
# This workflow is based on https://github.com/marketplace/actions/repository-traffic
- name: GitHub traffic
uses: sangonzal/repository-traffic-action@v.0.1.6
env:
TRAFFIC_ACTION_TOKEN: ${{ secrets.TRAFFIC_ACTION_TOKEN }}
# Commits files to traffic branch
- name: Commit changes
uses: EndBug/add-and-commit@v4
with:
author_name: Laura Luebbert
message: "GitHub traffic"
add: "./traffic/*"
ref: "traffic"