From 72c5784f30e1412018b8c0a01b2477b6ef3a2640 Mon Sep 17 00:00:00 2001 From: sctop <2094880085@qq.com> Date: Sun, 14 Apr 2024 01:27:47 +0800 Subject: [PATCH] fix(action): push.yaml bugfix --- .github/workflows/push.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 8b178d8..60f21fc 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -3,10 +3,10 @@ name: Push on: push: branches: - - 'main_v2' + - 'main' workflow_dispatch: repository_dispatch: - types: [ost-data-push-direct] + types: [ost-data-update-event] jobs: build: @@ -14,17 +14,20 @@ jobs: steps: - uses: actions/checkout@v3 + with: + submodules: 'recursive' + fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v2 with: python-version: '3.x' - - name: Run main_quick_test.py + - name: Run main.py run: | mkdir -p data_export - python main_quick_test.py + python main.py - name: Generator Dispatch uses: peter-evans/repository-dispatch@v1 with: token: ${{ secrets.ACTION_SCRIPT }} event-type: ost-data-parser-push-direct - repository: BA-OST-Index/ost_data_site_generator \ No newline at end of file + repository: BA-OST-Index/ost_data_site_generator