Skip to content

Update override.py #113

Update override.py

Update override.py #113

---
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'