Skip to content

Commit

Permalink
Add workflow to automatically fetch TCG Forbidden & Limited Lists dai…
Browse files Browse the repository at this point in the history
…ly at 00:05 UTC

#8
  • Loading branch information
kevinlul committed Jun 3, 2023
1 parent f51eb2c commit 756a2c4
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 7 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/limit-regulation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# SPDX-FileCopyrightText: © 2023 Kevin Lu
# SPDX-Licence-Identifier: AGPL-3.0-or-later
name: Download TCG Forbidden & Limited Lists
on:
workflow_dispatch:
repository_dispatch:
types:
- update
schedule:
- cron: "5 0 * * *"
jobs:
fetch:
name: Download TCG Forbidden & Limited Lists
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
cache-dependency-path: yarn.lock
- run: yarn
- run: yarn download-tcg
- name: Commit
run: |
git config user.name GitHub Actions
git config user.email [email protected]
git add .
git commit -m "Download TCG Forbidden & Limited Lists: ${{ github.run_number }} (${{ github.run_id }})"
git pull --rebase origin master
git push
7 changes: 0 additions & 7 deletions src/limit-regulation/tcg-all.sh

This file was deleted.

0 comments on commit 756a2c4

Please sign in to comment.