Feat/grabbing repo stats (#1)

* First version of working action, sending data to server.
* Adds daily cron job
This commit is contained in:
julien Lengrand-Lambert
2023-06-29 13:27:09 +02:00
committed by GitHub
parent 015226d6ab
commit 4edcfdabc7
11 changed files with 10795 additions and 48 deletions

16
.github/workflows/stats.yml vendored Normal file
View File

@@ -0,0 +1,16 @@
on:
schedule:
- cron: '30 5 * * *' # Every day at 5:30 AM UTC
jobs:
stats_job:
runs-on: ubuntu-latest
name: Grabbing latest statistics from the repository, every day
steps:
- name: Grabbing repo stats
id: stats
uses: /jlengrand/github-repository-stats-action@feat/grabbing-repo-stats
with:
access-token: ${{ secrets.ACCESS_TOKEN }}
- name: Grabbing repo stats output
run: echo "The payload is ${{ steps.stats.outputs.payload }}"

View File

@@ -3,13 +3,13 @@ on: [push]
jobs:
hello_world_job:
runs-on: ubuntu-latest
name: A job to say hello
name: Grabbing latest statistics from the repository
steps:
- name: Hello world action step
- name: Grabbing repo stats
id: hello
uses: /jlengrand/github-repository-stats-action@v0.1
uses: /jlengrand/github-repository-stats-action@feat/grabbing-repo-stats
with:
who-to-greet: 'Mona the Octocat'
# Use the output from the `hello` step
- name: Get the output time
run: echo "The time was ${{ steps.hello.outputs.time }}"
access-token: ${{ secrets.ACCESS_TOKEN }}
server-url: ${{ secrets.SERVER_URL }}
- name: Grabbing repo stats output
run: echo "The payload is ${{ steps.hello.outputs.payload }}"