From bb269043b9620e2672437bdf9ecbd9bd4a173f47 Mon Sep 17 00:00:00 2001 From: Patrick Creighton Date: Wed, 25 Oct 2023 15:21:49 -0700 Subject: [PATCH] Add run-sailbot-workspace-ci job (#182) * Create run-sailbot-workspace-ci job * Comment out condition to test * Revert test * Remove regression test --- .github/workflows/test_definitions.yml | 14 ++++++++++++++ .github/workflows/tests.yml | 3 --- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test_definitions.yml b/.github/workflows/test_definitions.yml index 1be7057d3..3f60177c0 100644 --- a/.github/workflows/test_definitions.yml +++ b/.github/workflows/test_definitions.yml @@ -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 }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1374afbb4..8a3fc80ca 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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