forked from conda/issue-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (29 loc) · 833 Bytes
/
year.yml
File metadata and controls
29 lines (29 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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: 18747875+conda-bot@users.noreply.github.com
commit_author: Conda Bot <18747875+conda-bot@users.noreply.github.com>