mirror of
https://github.com/jlengrand/github-repository-stats-action.git
synced 2026-03-10 08:21:21 +00:00
Feat/grabbing repo stats (#1)
* First version of working action, sending data to server. * Adds daily cron job
This commit is contained in:
committed by
GitHub
parent
015226d6ab
commit
4edcfdabc7
16
.github/workflows/stats.yml
vendored
Normal file
16
.github/workflows/stats.yml
vendored
Normal 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 }}"
|
||||
14
.github/workflows/test.yml
vendored
14
.github/workflows/test.yml
vendored
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user