Skip to content

Commit cad1467

Browse files
authored
ci: fix the create GH release workflow (#440)
Checkout the repository to have files to add to the artifact. Use the right environment variable when creating the GH release.
1 parent ae64008 commit cad1467

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/post-release-create-gh-release_Examples_repo.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
permissions:
2828
contents: read
2929
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v6
32+
3033
- name: Upload fake files to simulate built examples
3134
uses: actions/upload-artifact@v6
3235
with:
@@ -45,7 +48,7 @@ jobs:
4548
steps:
4649
- name: Set env
4750
run: |
48-
echo "RELEASE_VERSION=${{ needs.compute_environment_variables.outputs.version }}" >> $GITHUB_ENV
51+
echo "VERSION=${{ needs.compute_environment_variables.outputs.version }}" >> $GITHUB_ENV
4952
echo "TAG=${GITHUB_REF_NAME}" >> $GITHUB_ENV
5053
5154
- name: Download examples artifact
@@ -63,10 +66,10 @@ jobs:
6366
uses: ncipollo/release-action@v1
6467
with:
6568
body: |
66-
Examples for [bpmn-visualization@${{ env.RELEASE_VERSION }}](https://github.com/process-analytics/bpmn-visualization-js/releases/tag/${{ env.TAG }}).
67-
Live examples are available for [${{ env.RELEASE_VERSION }}](https://cdn.statically.io/gh/process-analytics/bpmn-visualization-examples/${{ env.TAG }}/examples/index.html).
69+
Examples for [bpmn-visualization@${{ env.VERSION }}](https://github.com/process-analytics/bpmn-visualization-js/releases/tag/${{ env.TAG }}).
70+
Live examples are available for [${{ env.VERSION }}](https://cdn.statically.io/gh/process-analytics/bpmn-visualization-examples/${{ env.TAG }}/examples/index.html).
6871
draft: true # Generate here in draft to not mess with the release-drafter workflow, this is not required in the targeted repository
6972
generateReleaseNotes: true
70-
name: ${{ env.RELEASE_VERSION }}
73+
name: ${{ env.VERSION }}
7174
artifacts: |
7275
maxgraph_${{ env.VERSION }}_examples.zip

0 commit comments

Comments
 (0)