feat: Automatically generate the README.md file (#7)
This commit is contained in:
32
.github/workflows/update-readme-file.yml
vendored
Normal file
32
.github/workflows/update-readme-file.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Update README file
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
update_readme_file:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
token: ${{ secrets.PAT }}
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.11"
|
||||
- name: Make README file
|
||||
run: python tools/make_readme.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 'Krypton'
|
||||
git config --global user.email 'root@krypton.ninja'
|
||||
git commit -am "docs: Automatic README.md file update with accurate wordlists [skip ci]"
|
||||
git push
|
||||
Reference in New Issue
Block a user