Files
wordlists/.github/workflows/update_generated_files.yml
renovate[bot] bd1a892d63 chore(deps): update actions/checkout action to v6 (#89)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-21 08:00:34 +01:00

39 lines
1.2 KiB
YAML
Vendored

name: Update generated files
on:
push:
branches:
- main
paths:
- "wordlists/**"
workflow_dispatch:
jobs:
update_generated_file:
name: Update generated files
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
with:
token: ${{ secrets.PAT }}
- name: Setup Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
with:
python-version: "3.14.0"
- name: Make README file
run: python tools/make_readme.py
- name: Make JSON file
run: python tools/make_json.py
- name: Check if there are any changes
id: verify_diff
run: |
git diff --quiet . || echo "changed=true" >> $GITHUB_OUTPUT
- name: Update README file
if: steps.verify_diff.outputs.changed == 'true'
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git commit -am "chore: Automatic update of generated files [skip ci]"
git push