Skip to content

Commit edcd6ea

Browse files
ecoussoux-ansyspyansys-ci-botRobPasMueSMoraisAnsys
authored
feat: prepend link to migration guide in GitHub release notes (#860)
Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Co-authored-by: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com> Co-authored-by: Sébastien Morais <146729917+SMoraisAnsys@users.noreply.github.com>
1 parent b054fb2 commit edcd6ea

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/ci_cd_release.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
rolling-release:
2121
name: "Rolling release"
2222
runs-on: ubuntu-latest
23+
outputs:
24+
tag_major: ${{ steps.current-branch-tag-validity.outputs.MAJOR }}
2325
env:
2426
REF_NAME: ${{ github.ref_name }}
2527
BASE_REF: ${{ github.event.base_ref }}
@@ -184,7 +186,9 @@ jobs:
184186
release:
185187
name: "Release"
186188
runs-on: ubuntu-latest
187-
needs: [doc-build, tests]
189+
needs: [doc-build, tests, rolling-release]
190+
env:
191+
MAJOR: ${{ needs.rolling-release.outputs.tag_major }}
188192
permissions:
189193
id-token: write
190194
contents: write
@@ -232,9 +236,23 @@ jobs:
232236
skip-existing: false
233237
verbose: true
234238

239+
- name: "Generate link to migration guide for current release"
240+
id: link-migration-guide
241+
run: |
242+
BASE_LINK="https://actions.docs.ansys.com/version/stable/migrations/index.html#version-v"
243+
# Append version number to point to specific entry in the migration guide
244+
LINK="${BASE_LINK}${MAJOR}"
245+
echo "LINK=${LINK}" >> $GITHUB_OUTPUT
246+
235247
- name: "Release to GitHub"
236248
uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2.2.2
237249
with:
250+
body: >
251+
If you are migrating the actions of your project to a new major release, breaking changes can be expected.
252+
253+
To make sure everything is compatible with your current workflow, refer to the
254+
[Migration Guide for v${{ env.MAJOR }}](${{ steps.link-migration-guide.outputs.LINK }}) to find out more
255+
about new features and potential breaking changes.
238256
generate_release_notes: true
239257
files: |
240258
documentation-html.zip

doc/source/changelog/860.added.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Prepend link to migration guide in github release notes

0 commit comments

Comments
 (0)