-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (32 loc) · 1.12 KB
/
run.yml
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
30
31
32
33
name: Generate Retro
on:
schedule:
# Run once a week at 00:05 AM UTC on Sunday.
- cron: 0 0 * * 0
# Run on demand via the GitHub UI
workflow_dispatch:
jobs:
generate_retro:
runs-on: ubuntu-latest
steps:
- name: run cloner
uses: actions/checkout@v3
- name: run install
run: npm install
- name: run generator
run: npm run generate # Run the generation tool
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: run create/update pull request
uses: gr2m/create-or-update-pull-request-action@v1 # Create a PR or update the Action's existing PR
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body: >
Here's a new weekly retro, automatically generated with
GitHub Actions and `@retrogen/generate`.
branch: actions/retrogen # Custom branch *just* for this Action.
commit-message: 'doc: generate weekly retro'
title: 'doc: generate weekly retro'
assignees: bnb # change to whoever you want to be assigned to this PR
auto-merge: squash