Skip to content

Commit a9cb0c6

Browse files
authored
Merge pull request #556 from AztecProtocol/jc/update-workflows
add aztec-starter traffic tracker
2 parents 8ad26d1 + e392bcd commit a9cb0c6

File tree

2 files changed

+40
-3
lines changed

2 files changed

+40
-3
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Log aztec-starter traffic
2+
3+
on:
4+
schedule:
5+
# runs once a week on sunday
6+
- cron: "55 23 * * 0"
7+
workflow_dispatch:
8+
9+
jobs:
10+
# This workflow contains a single job called "traffic"
11+
aztec-starter-traffic:
12+
# The type of runner that the job will run on
13+
runs-on: ubuntu-latest
14+
15+
# Steps represent a sequence of tasks that will be executed as part of the job
16+
steps:
17+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
18+
- uses: actions/checkout@v2
19+
20+
# Calculates traffic and clones and stores in CSV file
21+
- name: GitHub traffic
22+
uses: sangonzal/[email protected]
23+
env:
24+
TRAFFIC_ACTION_TOKEN: ${{ secrets.TRAFFIC_ACTION_TOKEN }}
25+
REPOSITORY_NAME: "AztecProtocol/aztec-starter"
26+
27+
# Commits files to repository
28+
- name: Commit changes
29+
uses: EndBug/add-and-commit@v4
30+
with:
31+
author_name: Josh Crites
32+
message: "aztec-starter GitHub traffic"
33+
add: "./traffic/*"
34+
ref: "traffic-aztec-starter"

.github/workflows/noir-starter-traffic.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1+
name: Log noir-starter traffic
2+
13
on:
24
schedule:
35
# runs once a week on sunday
46
- cron: "55 23 * * 0"
5-
7+
workflow_dispatch:
68

79
jobs:
810
# This workflow contains a single job called "traffic"
9-
traffic:
11+
noir-starter-traffic:
1012
# The type of runner that the job will run on
1113
runs-on: ubuntu-latest
1214

@@ -27,5 +29,6 @@ jobs:
2729
uses: EndBug/add-and-commit@v4
2830
with:
2931
author_name: Josh Crites
30-
message: "GitHub traffic"
32+
message: "noir-starter GitHub traffic"
3133
add: "./traffic/*"
34+
ref: "traffic-noir-starter"

0 commit comments

Comments
 (0)