Update workflows #15
Workflow file for this run
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 tags.json | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 1 * *' # First day of every month | ||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
- name: Install and update deps | ||
run: | | ||
python -m pip install -U pip | ||
pip install -U -r requirements.txt | ||
- name: Run newtags.py | ||
run: python newtags.py | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | ||
- name: Auto commit | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: "Cron: Update tags.json" | ||
file_pattern: '*.json' | ||
skip_fetch: false |