provider-stats #340
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: provider-stats | |
on: | |
# Daily | |
schedule: | |
- cron: "59 23 * * *" | |
# Manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE | |
- uses: actions/checkout@v3 | |
- name: run | |
env: | |
MY_GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} | |
run: | | |
go run ./cmd/axpp/main.go provider-stats | |
- name: git diff | |
run: git diff | |
- name: Commit Stats | |
run: | | |
git config --global user.name 'Gitub Action' | |
git config --global user.email '[email protected]' | |
git add . | |
git commit -am "Daily Stats Update" | |
git push |