update #726
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: update | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "10 7 * * *" # At 7:10 UTC | |
jobs: | |
generate_list: | |
runs-on: macos-14 | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Update rstthreats | |
run: | | |
git submodule update --remote --merge | |
- name: setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: execute py script | |
run: | | |
python extract.py | |
- name: commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add -A | |
git diff --name-only --cached --exit-code || ( git commit -am "update lists" && git push ) |