From 4127ccb9280d4d8809148445c98c391e9cff89cb Mon Sep 17 00:00:00 2001 From: Connor Barr Date: Mon, 9 Dec 2024 17:11:42 +0000 Subject: [PATCH] ci: nightly try/catch --- .github/workflows/nightly.yml | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 6884707fa..2e87f90ef 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -16,14 +16,18 @@ jobs: with: github-token: ${{ secrets.CI_PAT }} script: | - await github.rest.actions.createWorkflowDispatch({ - owner: context.repo.owner, - repo: context.repo.name, - workflow_id: 'deploy.yml', - ref: 'main', - inputs: { - network: 'galileo-4', - kernel_address: 'andr1536hsxv4706s0wwmswcc7j7t7newvfu8tqx7fnm8hfvdznlc0dnsal669q', - deploy_os: 'true', - } - }); + try { + await github.rest.actions.createWorkflowDispatch({ + owner: context.repo.owner, + repo: context.repo.name, + workflow_id: 'deploy.yml', + ref: 'main', + inputs: { + network: 'galileo-4', + kernel_address: 'andr1536hsxv4706s0wwmswcc7j7t7newvfu8tqx7fnm8hfvdznlc0dnsal669q', + deploy_os: 'true', + } + }); + } catch (error) { + console.error('Error triggering deploy workflow:', error); + }