Skip to content

Commit 5c983b5

Browse files
committed
update github actions
1 parent 96bcbf0 commit 5c983b5

File tree

3 files changed

+34
-30
lines changed

3 files changed

+34
-30
lines changed

.github/workflows/generate_grants.yml

-29
This file was deleted.

.github/workflows/update_pages.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Update Pages
2+
on:
3+
push:
4+
branches:
5+
- master
6+
schedule:
7+
- cron: "0 4 * * *"
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Install uv
14+
uses: astral-sh/setup-uv@v6
15+
- name: Generate the list of grants
16+
run: uv run python scripts/generate_grants.py > ./docs/operations/grants.rst
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
- name: Generate the list of boards
20+
run: uv run python scripts/generate_boards.py > ./docs/operations/boards.rst
21+
- name: Create PR
22+
uses: peter-evans/create-pull-request@v7
23+
with:
24+
token: ${{ secrets.GITHUB_TOKEN }}
25+
add-paths: |
26+
./docs/operations/grants.rst
27+
./docs/operations/boards.rst
28+
commit-message: "update pages (generated)"
29+
branch: automation/pages
30+
title: "Automated update of pages (grants, boards)"
31+
body: >
32+
Automated update of some pages, namely the lists of grants and boards :robot:
33+
For details, see [the docs](https://docs.pyvec.org/contributing.html) :book:

docs/operations/boards.rst.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Kdyby něco nesedělo, ověřte `historii zdrojáku této stránky <https://gith
88
.. Soubor docs/operations/boards.rst je generován skriptem scripts/generate_boards.py ze šablony docs/operations/boards.rst.jinja. Neupravovat ručně!
99

1010
{% for board in boards %}
11-
Mandát od {{ board.start_on.strftime("%-d.%-m.%Y") }}
11+
Výbor od {{ board.start_on.strftime("%-d.%-m.%Y") }}
1212
-------------------------------------------------
1313

1414
.. csv-table::

0 commit comments

Comments
 (0)