@@ -22,8 +22,8 @@ defaults:
22
22
23
23
jobs :
24
24
25
- get_tag_info :
26
- name : Get tag info
25
+ plan :
26
+ name : ' Plan: ${{ inputs.release_type}} ( tag=${{ inputs.create_tag }}) '
27
27
runs-on : ubuntu-latest
28
28
outputs :
29
29
tag_name : ${{ steps.make_tag_info.outputs.TAG_NAME }}
@@ -42,18 +42,18 @@ jobs:
42
42
git tag --list | tail -n 20
43
43
echo ==========
44
44
buildscripts/ci/release/make_tag_name.sh | tee -a "${GITHUB_OUTPUT}"
45
- echo ==========
46
45
echo "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/commit/${GITHUB_SHA}"
47
46
echo ==========
47
+ # https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions
48
48
if [[ "${CREATE_TAG}" == 'true' ]]; then
49
- echo "Tag will be created. "
49
+ echo "::notice :: Tag will be created"
50
50
else
51
- echo "Tag will not be created. "
51
+ echo "::warning :: Tag will NOT be created"
52
52
fi
53
53
54
54
build :
55
55
name : Build
56
- needs : get_tag_info
56
+ needs : plan
57
57
uses : ./.github/workflows/build_all.yml
58
58
secrets : inherit
59
59
with :
@@ -73,15 +73,15 @@ jobs:
73
73
environment : production # requires approval
74
74
75
75
create_release :
76
- name : ' Create release: ${{ needs.get_tag_info .outputs.tag_name }}'
76
+ name : ' Create release: ${{ needs.plan .outputs.tag_name }}'
77
77
needs :
78
- - get_tag_info # to access outputs
78
+ - plan # to access outputs
79
79
- update_learn_playlists
80
80
if : ${{ ! failure() && ! cancelled() && inputs.create_tag }} # run even if prior jobs were skipped
81
81
runs-on : ubuntu-latest
82
82
environment :
83
83
name : production # requires approval
84
- url : ${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ needs.get_tag_info .outputs.tag_name }}
84
+ url : ${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ needs.plan .outputs.tag_name }}
85
85
steps :
86
86
- name : Clone repository
87
87
uses : actions/checkout@v4
94
94
buildscripts/ci/release/collate_release_binaries.sh
95
95
- name : Create tag # do this as late as possible so we're not left with a useless tag if something fails
96
96
env :
97
- TAG_NAME : ${{ needs.get_tag_info .outputs.tag_name }}
97
+ TAG_NAME : ${{ needs.plan .outputs.tag_name }}
98
98
run : |
99
99
int="(0|[1-9][0-9]*)"
100
100
version="${int}\.${int}(\.${int})?"
@@ -114,20 +114,20 @@ jobs:
114
114
draft : true
115
115
prerelease : ${{ inputs.release_type != 'stable' }}
116
116
files : release/*
117
- name : ${{ needs.get_tag_info .outputs.release_name }}
118
- tag_name : ${{ needs.get_tag_info .outputs.tag_name }}
117
+ name : ${{ needs.plan .outputs.release_name }}
118
+ tag_name : ${{ needs.plan .outputs.tag_name }}
119
119
fail_on_unmatched_files : true
120
120
generate_release_notes : false
121
121
122
122
notify_users :
123
123
name : Notify users
124
124
needs :
125
- - get_tag_info # to access outputs
125
+ - plan # to access outputs
126
126
- create_release
127
127
if : ${{ github.repository == 'musescore/MuseScore' && ! failure() && ! cancelled() && needs.create_release.result == 'success' }}
128
128
uses : ./.github/workflows/update_release_info.yml
129
129
secrets : inherit
130
130
with :
131
131
mode : ${{ inputs.release_type == 'stable' && 'stable' || 'testing' }}
132
- tag : ${{ needs.get_tag_info .outputs.tag_name }}
132
+ tag : ${{ needs.plan .outputs.tag_name }}
133
133
environment : production # requires approval
0 commit comments