Skip to content

Regular review

Regular review #7

Workflow file for this run

name: Regular review
on:
workflow_dispatch: # Allows triggering manually
schedule:
- cron: '54 12 1 * *' # runs every first of the month at 17:10 UTC (chosen somewhat randomly)
permissions:
issues: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: cachix/install-nix-action@v26
- uses: actions/checkout@v4
with:
path: repo
- uses: actions/create-github-app-token@v1
id: app-token
with:
# This GitHub App needs Organization/Members/read-only access
# to figure out who's part of the team
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Generate issue body
run: repo/scripts/review-body.sh repo ${{ github.repository }} > body
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
- run: |
gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/${{ github.repository }}/issues \
-f title="[$(date +'%Y %B')] Regular manual review " \
-F body=@body
env:
# This token has write access to only issues to create one
GH_TOKEN: ${{ github.token }}