From b689e46a96c01030dd93e3eca4c51cad76775902 Mon Sep 17 00:00:00 2001 From: Vinfall <91039000+Vinfall@users.noreply.github.com> Date: Fri, 19 Jan 2024 00:18:08 +0800 Subject: [PATCH] Add en & ja release calendar workflow --- .github/workflows/gen-en-calendar.yml | 42 +++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/gen-en-calendar.yml diff --git a/.github/workflows/gen-en-calendar.yml b/.github/workflows/gen-en-calendar.yml new file mode 100644 index 0000000..3871432 --- /dev/null +++ b/.github/workflows/gen-en-calendar.yml @@ -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 }}