From 7461631d705ccc3f52f372cdc40fed76bba4cf00 Mon Sep 17 00:00:00 2001 From: David Gerchikov Date: Sun, 14 Apr 2024 16:04:24 +0300 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 562d31c2..29680f4e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,14 +9,20 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/github-script@v7 - name: Invoke docker image build + name: build images with: - debug: true github-token: ${{ secrets.PAT }} script: | - await github.rest.actions.createWorkflowDispatch({ - owner: '${{ secrets.ORG }}', - repo: '${{ secrets.REPO }}', - workflow_id: 'hello-world.yml', - ref: 'APPS-1189-improve-release-github-action-workflow' - }) + try { + await github.rest.actions.createWorkflowDispatch({ + owner: '${{ secrets.ORG }}', + repo: '${{ secrets.REPO }}', + workflow_id: 'hello-world.yml', + ref: 'APPS-1189-improve-release-github-action-workflow' + client_payload: '{tag: 0.3.0}' + }) + console.log(result); + } catch(error) { + console.error(error); + core.setFailed(error); + }