diff --git a/.github/workflows/upload-demo-archive.yml b/.github/workflows/upload-demo-archive.yml index 52356e7732..755e24bf6a 100644 --- a/.github/workflows/upload-demo-archive.yml +++ b/.github/workflows/upload-demo-archive.yml @@ -45,4 +45,19 @@ jobs: with: name: demo-${{github.sha}} path: build/demo + - name: Get the version + id: get_version + run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v*} + - name: Repository Dispatch + uses: peter-evans/repository-dispatch@v1 + with: + token: ${{ secrets.GH_RELEASE_TOKEN }} + repository: process-analytics/bpmn-visualization-examples + event-type: update_bpmn_visualization_version + client-payload: '{ + "build_demo_repo": "${{ github.repository }}", + "build_demo_workflow_id": "upload-demo-archive.yml", + "artifact_name": "demo-${{github.sha}}", + "version": "${{ steps.get_version.outputs.VERSION }}" + }'