-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to automatically fetch TCG Forbidden & Limited Lists dai…
…ly at 00:05 UTC #8
- Loading branch information
Showing
2 changed files
with
31 additions
and
7 deletions.
There are no files selected for viewing
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
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 |
This file was deleted.
Oops, something went wrong.