manual-update #1040
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: manual-update | |
'on': | |
schedule: | |
- cron: '0 10,18 * * 1-5' | |
jobs: | |
run-all: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: setup python | |
uses: actions/[email protected] | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Update | |
run: | | |
export PYTHONPATH=$PYTHONPATH:$PWD | |
cd scripts | |
python update_tracker.py | |
- name: Save changes | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Actions [bot]" | |
git add . | |
git commit -m "Manual intel tracker update" | |
- name: push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |