Skip to content

Commit 8fca7cf

Browse files
committed
ci: add traffic wf
1 parent b927ced commit 8fca7cf

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/traffic.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Collect traffic stats
2+
on:
3+
schedule:
4+
- cron: "51 23 * * 0"
5+
workflow_dispatch:
6+
7+
jobs:
8+
traffic:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
with:
13+
ref: "gh-pages"
14+
15+
- name: GitHub traffic
16+
uses: sangonzal/[email protected]
17+
env:
18+
TRAFFIC_ACTION_TOKEN: ${{ secrets.TRIGGERING_PAT }}
19+
20+
- name: Commit changes
21+
uses: EndBug/add-and-commit@v4
22+
with:
23+
author_name: Ansible Middleware
24+
message: "GitHub traffic"
25+
add: "./traffic/*"
26+
ref: "gh-pages"

0 commit comments

Comments
 (0)