update tags.json #14
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 redgifs/tags.json | |
on: | |
workflow_dispatch: | |
schedule: | |
# First day of every month | |
- cron: '0 0 1 * *' | |
jobs: | |
update_tags: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: Install and update packages | |
run: python3 -m pip install -U -r requirements.txt . | |
- name: Run newtags.py | |
run: python3 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 |