File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 - preset: conventionalcommits
44 - - "@semantic-release/release-notes-generator"
55 - preset: conventionalcommits
6+ # For pre-release branches
7+ branches:
8+ - main
9+ - name: (alpha|beta|rc)
10+ prerelease: true
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ It is expected this action to be used with other actions to perform tag and rele
2727 id : prepare_release
2828 uses : elastiflow/gha-reusable/actions/prepare-release@v0
2929 with :
30- branch : " ${{ github.ref_name }} "
30+ add_git_notes : true
3131 changelog_update : true
3232 bump_version_yaml : true
3333 bump_version_yaml_path : galaxy.yml
Original file line number Diff line number Diff line change 11name : ' Prepare release'
22description : ' Update manifests, changelog before the release'
33inputs :
4- branch :
5- required : true
6- description : " Release branch"
74 commit_back :
85 default : " false"
96 description : " Commit and push version updates"
7+ add_git_notes :
8+ default : " false"
9+ description : " Add and push \" semantic-release\" git notes to determine release channel. Should be `true` if release is going to be done"
1010 changelog_update :
1111 default : " false"
1212 description : " Update changelog"
7272 ci : false
7373 dry_run : true
7474 unset_gha_env : true
75- branches : |
76- [
77- '${{ inputs.branch }}'
78- ]
7975 extra_plugins : |
8076 conventional-changelog-conventionalcommits
8177 - name : Bump version in YAML
@@ -108,3 +104,12 @@ runs:
108104 with :
109105 commit_message : |
110106 doc: Update version/changelog
107+ # Git notes are needed for "semantic-release" to properly detect release channel
108+ - name : Add git notes
109+ if : ${{ fromJson(steps.semantic_release.outputs.new_release_published) && fromJson(inputs.add_git_notes)}}
110+ shell : bash
111+ run : |
112+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
113+ git config --global user.name "github-actions[bot]"
114+ git notes --ref semantic-release add -f -m '{"channels":["${{ steps.semantic_release.outputs.new_release_channel }}"]}'
115+ git push origin refs/notes/semantic-release
You can’t perform that action at this time.
0 commit comments