Oselvar GitHub Metrics #30708
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: Oselvar GitHub Metrics | |
on: | |
push: | |
workflow_dispatch: | |
schedule: | |
- cron: '43 * * * *' | |
jobs: | |
update-oselvar-csv: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 15.x | |
- name: Update Oselvar CSV | |
env: | |
GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | |
run: ./update.sh | |
- name: Commit and push if it changed | |
run: |- | |
git config user.name "Oselvar Bot" | |
git config user.email "actions@users.noreply.github.com" | |
git add -A | |
timestamp=$(date -u) | |
git commit -m "Latest data: ${timestamp}" || exit 0 | |
git push |