weekly encites #130
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: weekly encites | |
on: | |
schedule: | |
# 00:00:00 every Monday | |
# https://crontab.guru/#0_0_*_*_1 | |
- cron: "0 0 * * 1" | |
workflow_dispatch: | |
jobs: | |
weekly: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- run: npm ci | |
- run: npm run report | |
env: | |
ENCITES_GITHUB_PAT: ${{ secrets.ENCITES_GITHUB_PAT }} | |
- uses: gr2m/[email protected] # create a PR or update the Action's existing PR | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
title: "report: weekly run of encites" | |
body: "The run - unsurprisingly - has some changes. This is a PR of those changes." | |
commit-message: 'chore: run `npm run report`' | |
branch: "runs" |