Skip to content

Commit

Permalink
trigger ScenarioNet test when update MetaDrive (#648)
Browse files Browse the repository at this point in the history
* trigger scenarionet test

* fix bug

* Add token

* update token

* dispatch

* trigger test only when MetaDrive is updated
  • Loading branch information
QuanyiLi committed Feb 17, 2024
1 parent 1ff8725 commit 972b1ae
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ jobs:
pip install "yapf==0.30.0"
bash format.sh --test
scenarionet_test:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.APP_REPO_TOKEN }}
repository: metadriverse/scenarionet
event-type: metadrive-update

docstring_coverage:
if: github.event_name != 'push' || github.ref != 'refs/heads/main'
runs-on: ubuntu-latest
Expand Down

0 comments on commit 972b1ae

Please sign in to comment.