From c766590f41f9b8499e7ff8bc99a700f5cc7abdc5 Mon Sep 17 00:00:00 2001 From: Guido Grazioli Date: Thu, 27 Jun 2024 11:25:12 +0200 Subject: [PATCH] ci: add traffic wf --- .github/workflows/traffic.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/traffic.yml diff --git a/.github/workflows/traffic.yml b/.github/workflows/traffic.yml new file mode 100644 index 0000000..b4f245e --- /dev/null +++ b/.github/workflows/traffic.yml @@ -0,0 +1,26 @@ +name: Collect traffic stats +on: + schedule: + - cron: "51 23 * * 0" + workflow_dispatch: + +jobs: + traffic: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + ref: "gh-pages" + + - name: GitHub traffic + uses: sangonzal/repository-traffic-action@v.0.1.6 + env: + TRAFFIC_ACTION_TOKEN: ${{ secrets.TRIGGERING_PAT }} + + - name: Commit changes + uses: EndBug/add-and-commit@v4 + with: + author_name: Ansible Middleware + message: "GitHub traffic" + add: "./traffic/*" + ref: "gh-pages"