Skip to content

Commit

Permalink
Add run-sailbot-workspace-ci job (#182)
Browse files Browse the repository at this point in the history
* Create run-sailbot-workspace-ci job

* Comment out condition to test

* Revert test

* Remove regression test
  • Loading branch information
patrick-5546 authored Oct 25, 2023
1 parent 95bc26c commit bb26904
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/test_definitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,17 @@ jobs:
gh run watch -R UBCSailbot/docs $(gh run list -R UBCSailbot/docs -w tests.yml -L1 --json databaseId --jq '.[0].databaseId')
env:
GH_TOKEN: ${{ secrets.gh-token }}

# Runs Sailbot Workspace CI
run-sailbot-workspace-ci:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && inputs.repository != 'sailbot_workspace' && inputs.repository != 'docs'
steps:
- name: Dispatch Sailbot Workspace Tests workflow to run CI
# https://github.com/orgs/community/discussions/26323#discussioncomment-5600001
run: |
gh workflow run tests.yml -R UBCSailbot/sailbot_workspace
sleep 5
gh run watch -R UBCSailbot/sailbot_workspace $(gh run list -R UBCSailbot/sailbot_workspace -w tests.yml -L1 --json databaseId --jq '.[0].databaseId')
env:
GH_TOKEN: ${{ secrets.gh-token }}
3 changes: 0 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ on:
# sailbot_workspace only: raye branch used to run Raye's software
- raye
pull_request:
# sailbot_workspace only: regression tests runs every Friday at 1:00am UTC
schedule:
- cron: '0 1 * * 5'
workflow_dispatch:

# Cancel in-progress runs for the current workflow
Expand Down

0 comments on commit bb26904

Please sign in to comment.