From 8be84b564950a7a44e7a6c5d02c0fdea72a7ee23 Mon Sep 17 00:00:00 2001 From: Thomas Bouffard <27200110+tbouffard@users.noreply.github.com> Date: Fri, 23 Jan 2026 16:55:27 +0100 Subject: [PATCH] ci: fix the create GH release workflow Checkout the repository to have files to add to the artifact. Use the right environment variable when creating the GH release. --- .../post-release-create-gh-release_Examples_repo.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/post-release-create-gh-release_Examples_repo.yml b/.github/workflows/post-release-create-gh-release_Examples_repo.yml index 42ca720..76211e3 100644 --- a/.github/workflows/post-release-create-gh-release_Examples_repo.yml +++ b/.github/workflows/post-release-create-gh-release_Examples_repo.yml @@ -27,6 +27,9 @@ jobs: permissions: contents: read steps: + - name: Checkout + uses: actions/checkout@v6 + - name: Upload fake files to simulate built examples uses: actions/upload-artifact@v6 with: @@ -45,7 +48,7 @@ jobs: steps: - name: Set env run: | - echo "RELEASE_VERSION=${{ needs.compute_environment_variables.outputs.version }}" >> $GITHUB_ENV + echo "VERSION=${{ needs.compute_environment_variables.outputs.version }}" >> $GITHUB_ENV echo "TAG=${GITHUB_REF_NAME}" >> $GITHUB_ENV - name: Download examples artifact @@ -63,10 +66,10 @@ jobs: uses: ncipollo/release-action@v1 with: body: | - Examples for [bpmn-visualization@${{ env.RELEASE_VERSION }}](https://github.com/process-analytics/bpmn-visualization-js/releases/tag/${{ env.TAG }}). - Live examples are available for [${{ env.RELEASE_VERSION }}](https://cdn.statically.io/gh/process-analytics/bpmn-visualization-examples/${{ env.TAG }}/examples/index.html). + Examples for [bpmn-visualization@${{ env.VERSION }}](https://github.com/process-analytics/bpmn-visualization-js/releases/tag/${{ env.TAG }}). + Live examples are available for [${{ env.VERSION }}](https://cdn.statically.io/gh/process-analytics/bpmn-visualization-examples/${{ env.TAG }}/examples/index.html). draft: true # Generate here in draft to not mess with the release-drafter workflow, this is not required in the targeted repository generateReleaseNotes: true - name: ${{ env.RELEASE_VERSION }} + name: ${{ env.VERSION }} artifacts: | maxgraph_${{ env.VERSION }}_examples.zip