-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (47 loc) · 1.51 KB
/
rdd-gen.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Automated RDD Generation
on:
schedule:
- cron: '0 0 * * FRI'
workflow_dispatch:
jobs:
build: # job 1
name: 'Generate RDD'
runs-on: ubuntu-latest
if: github.actor != 'pdsen-ci'
strategy:
matrix:
build-number: ['15.0']
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
- name: Set up Python 3
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Generate RDD
run: |
export ZENHUB_TOKEN=${{ secrets.ZENHUB_TOKEN }}
pds-issues --token ${{ secrets.ADMIN_GITHUB_TOKEN }} --format rst --issue_state closed --build B${{matrix.build-number}}
mkdir -p docs/source/releases/${{matrix.build-number}}
mv pdsen_issues.rst docs/source/releases/${{matrix.build-number}}/rdd.rst
- name: Make Sphinx
id: make
run: |
cd docs
make github
cd ..
- name: Push LDDs to Github
run: |
git config --local user.email "[email protected]"
git config --local user.name "PDSEN CI Bot"
git add -A .
git commit --allow-empty -m "Auto-generated RDD by PDSEN CI Bot"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
branch: ${{ github.ref }}