Skip to content

Commit

Permalink
Add en & ja release calendar workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinfall committed Jan 18, 2024
1 parent 0e9f689 commit b689e46
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/gen-en-calendar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: gen-en-calendar

on:
schedule:
- cron: '0 4 * * *' # 4:00 UTC everyday
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:

- name: Checkout repo
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: install python packages
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: execute py script
run: python vndb-calendar.py -f "0572171_4YsVe122gen2gjaN48721gwcomplete-" -t 0

- name: upload artifact to release
uses: ncipollo/release-action@v1
with:
allowUpdates: True
prerelease: False
tag: "en"
omitBody: True
omitBodyDuringUpdate: True
omitNameDuringUpdate: True
artifacts: "output/vndb-*"
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b689e46

Please sign in to comment.