File tree 2 files changed +26
-3
lines changed
2 files changed +26
-3
lines changed Original file line number Diff line number Diff line change 57
57
prod-status :
58
58
required : true
59
59
type : string
60
+ beta-status :
61
+ required : true
62
+ type : string
60
63
61
64
jobs :
62
65
check-status :
63
66
runs-on : ubuntu-latest
64
67
steps :
65
68
- name : Verify workflow status
66
69
run : |
67
- if [[ "${{ inputs.rc-status }}" == "failure" || "${{ inputs.prod-status }}" == "failure" ]]; then
70
+ if [[ "${{ inputs.rc-status }}" == "failure" || "${{ inputs.prod-status }}" == "failure" || "${{ inputs.beta-status }}" == "failure" ]]; then
68
71
echo "::error::Release workflow failed"
69
72
exit 1
70
73
fi
71
74
72
75
if [[ "${{ inputs.version }}" =~ -rc ]]; then
73
76
echo "Release candidate ${{ inputs.version }} processed successfully"
77
+ elif [[ "${{ inputs.version }}" =~ -beta ]]; then
78
+ echo "Beta release ${{ inputs.version }} processed successfully"
74
79
else
75
80
echo "Production release ${{ inputs.version }} completed successfully"
76
81
fi
Original file line number Diff line number Diff line change 50
50
tags :
51
51
- " v*.*.*"
52
52
- " v*.*.*-rc*"
53
+ - " v*.*.*-beta*"
53
54
workflow_dispatch :
54
55
inputs :
55
56
version :
86
87
87
88
production-release-process :
88
89
needs : [validation]
89
- if : ${{ !contains(needs.validation.outputs.version, '-rc') }}
90
+ if : ${{ !contains(needs.validation.outputs.version, '-rc') && !contains(needs.validation.outputs.version, '-beta') }}
91
+ uses : ./.github/workflows/_reusable-production-release-process.yaml
92
+ with :
93
+ version : ${{ needs.validation.outputs.version }}
94
+ artifact-name : ${{ needs.validation.outputs.artifact-name }}
95
+ secrets :
96
+ pypi-token : ${{ secrets.PYPI_TOKEN }}
97
+
98
+ beta-release-process :
99
+ needs : [validation]
100
+ if : contains(needs.validation.outputs.version, '-beta')
90
101
uses : ./.github/workflows/_reusable-production-release-process.yaml
91
102
with :
92
103
version : ${{ needs.validation.outputs.version }}
@@ -95,10 +106,17 @@ jobs:
95
106
pypi-token : ${{ secrets.PYPI_TOKEN }}
96
107
97
108
status :
98
- needs : [validation, rc-release-process, production-release-process]
109
+ needs :
110
+ [
111
+ validation,
112
+ rc-release-process,
113
+ production-release-process,
114
+ beta-release-process,
115
+ ]
99
116
if : always() && !inputs.dry_run
100
117
uses : ./.github/workflows/_reusable-release-status.yaml
101
118
with :
102
119
version : ${{ needs.validation.outputs.version }}
103
120
rc-status : ${{ needs.rc-release-process.result }}
104
121
prod-status : ${{ needs.production-release-process.result }}
122
+ beta-status : ${{ needs.beta-release-process.result }}
You can’t perform that action at this time.
0 commit comments