Generate Retro #123
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: 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 |