Generate Grants #1777
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 Grants | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: "0 4 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.12" | |
- name: Install dependencies | |
run: python -m pip install -r requirements.txt | |
- name: Generate the list of grants | |
run: python _scripts/generate_grants.py > ./operations/grants.rst | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create PR | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: "update the list of grants (generated)" | |
branch: automation/grants | |
title: "Automated update of the list of grants" | |
body: > | |
Automated update of the list of grants :robot: | |
For details, see [the docs](https://docs.pyvec.org/CONTRIBUTING.html#skript-na-generovani-zapisu-hlasovani-o-grantech) :book: |