Skip to content

Commit

Permalink
fix(action): push.yaml bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
sctop committed Apr 13, 2024
1 parent 0286d81 commit 72c5784
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,31 @@ name: Push
on:
push:
branches:
- 'main_v2'
- 'main'
workflow_dispatch:
repository_dispatch:
types: [ost-data-push-direct]
types: [ost-data-update-event]

jobs:
build:
runs-on: ubuntu-latest

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
repository: BA-OST-Index/ost_data_site_generator

0 comments on commit 72c5784

Please sign in to comment.