-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.23 KB
/
check_and_generate.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
---
on:
pull_request:
workflow_dispatch:
jobs:
check-and-generate:
name: Check files and generate new glossary
runs-on: ubuntu-latest
# Give the default GITHUB_TOKEN write permissions to commit and push the changed files back to the repository.
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.SVC_ACCT_PAT }}
- name: Checkout dqx_translations repository
uses: actions/checkout@v4
with:
repository: 'dqx-translation-project/dqx_translations'
path: 'dqx_translations'
- name: Install Python
uses: actions/setup-python@v1
with:
python-version: '3.11'
- name: Run check validations
run: python .github/workflows/checks.py
- name: Generate glossary
run: |
cd generate_glossary;
python main.py;
- name: Commit pending glossary changes back to branch
uses: stefanzweifel/git-auto-commit-action@v5
with:
file_pattern: 'csv/*.csv'
commit_message: '[skip ci] Committing generated glossary'