From 379f96fed6f154e441582aa6de8111dfec863421 Mon Sep 17 00:00:00 2001 From: Heiko Scherrer Date: Wed, 6 Dec 2023 15:37:23 +0100 Subject: [PATCH] Activated remote trigger --- .github/workflows/trigger-ui-build.yml | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/trigger-ui-build.yml diff --git a/.github/workflows/trigger-ui-build.yml b/.github/workflows/trigger-ui-build.yml new file mode 100644 index 00000000..48fd9682 --- /dev/null +++ b/.github/workflows/trigger-ui-build.yml @@ -0,0 +1,36 @@ +name: "Trigger UI Build" +on: + workflow_run: + workflows: ["master_build"] + branches: [ master ] + types: + - completed + workflow_dispatch: + inputs: + workflow_02: + description: 'Ù‹Workflow 2 which will be triggered' + required: true + default: 'master_build' + + workflow2_github_account: + description: 'GitHub Account Owner' + required: true + default: 'interface21-io' + + workflow2_repo_github: + description: 'repo-name' + required: true + default: 'org.openwms.wms.movements.ui' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Trigger + run: | + curl -X POST https://api.github.com/repos/interface21-io/org.openwms.wms.movements.ui/dispatches \ + -H 'Accept: application/vnd.github.everest-preview+json' \ + -u ${{ secrets.PUSHKEY }} \ + --data '{"event_type": "Remote Trigger", "client_payload": { "repository": "'"$GITHUB_REPOSITORY"'" }}' + - uses: actions/checkout@v3