Year #1098
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: Year | |
on: | |
schedule: | |
# 10 past the hour, every 24 hours | |
# https://crontab.guru/#10_6_*_*_* | |
- cron: 10 6 * * * | |
jobs: | |
year: | |
if: >- | |
!github.event.repository.fork | |
runs-on: ubuntu-latest | |
steps: | |
# setup | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- run: npm install | |
# run query | |
- run: node snapshots.js year 366 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# commit changes | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Every 24 hours snapshot | |
commit_user_name: Conda Bot | |
commit_user_email: [email protected] | |
commit_author: Conda Bot <[email protected]> |