@@ -5,8 +5,8 @@ description: >
5
5
and uploads it to the Github registry
6
6
7
7
inputs :
8
- # python_version:
9
- # required: true
8
+ python_version :
9
+ required : true
10
10
SA_GH_USER_NAME :
11
11
required : true
12
12
SA_GH_USER_EMAIL :
43
43
- name : Setup python
44
44
uses : actions/setup-python@v4
45
45
with :
46
- python-version : ' 3.7 '
46
+ python-version : ${{ inputs.python_version }}
47
47
48
48
- name : Create requirements file for pip
49
49
shell : bash
@@ -114,20 +114,20 @@ runs:
114
114
PrNumber : ${{ github.event.number }}
115
115
116
116
- name : Download THIRDPARTY
117
- if : ' 3.7 ' == '3.7' && github.event_name != 'pull_request' && github.event_name != 'schedule'
117
+ if : ${{ inputs.python_version }} == '3.7' && github.event_name != 'pull_request' && github.event_name != 'schedule'
118
118
uses : actions/download-artifact@v3
119
119
with :
120
120
name : THIRDPARTY
121
121
122
122
- name : Download THIRDPARTY (Optional for PR and schedule)
123
- if : ' 3.7 ' == '3.7' && github.event_name == 'pull_request' || github.event_name == 'schedule'
123
+ if : ${{ inputs.python_version }} == '3.7' && github.event_name == 'pull_request' || github.event_name == 'schedule'
124
124
continue-on-error : true
125
125
uses : actions/download-artifact@v3
126
126
with :
127
127
name : THIRDPARTY
128
128
129
129
- name : Update Notices
130
- if : ' 3.7 ' == '3.7'
130
+ if : ${{ inputs.python_version }} == '3.7'
131
131
shell : bash
132
132
run : |
133
133
cp -f THIRDPARTY package/THIRDPARTY || echo "THIRDPARTY file not found (allowed for PR and schedule)"
@@ -139,7 +139,7 @@ runs:
139
139
version : ${{ steps.BuildVersion.outputs.VERSION }}
140
140
141
141
- name : Slim Package
142
- if : always() && '3.7' == '3.7'
142
+ if : always() && ${{ inputs.python_version }} == '3.7'
143
143
id : slim
144
144
uses : splunk/addonfactory-packaging-toolkit-action@v1
145
145
with :
@@ -148,26 +148,26 @@ runs:
148
148
- name : debug
149
149
shell : bash
150
150
run : |
151
- echo "'3.7' "
151
+ echo "${{ inputs.python_version }} "
152
152
echo "${{ inputs.ucc_modinput_functional }}"
153
153
echo "${{ github.event_name }}"
154
154
155
155
- name : Artifact OpenAPI
156
- if : ' 3.7 ' == '3.7' && ${{ !cancelled() && inputs.ucc_modinput_functional == 'true' && inputs.modinput_functional == 'true' }}
156
+ if : ${{ inputs.python_version }} == '3.7' && ${{ !cancelled() && inputs.ucc_modinput_functional == 'true' && inputs.modinput_functional == 'true' }}
157
157
uses : actions/upload-artifact@v3
158
158
with :
159
159
name : artifact-openapi
160
160
path : ${{ github.workspace }}/${{ steps.uccgen.outputs.OUTPUT }}/static/openapi.json
161
161
162
162
- name : Artifact Splunkbase
163
- if : ${{ !cancelled() }} && '3.7' == '3.7'
163
+ if : ${{ !cancelled() }} && ${{ inputs.python_version }} == '3.7'
164
164
uses : actions/upload-artifact@v3
165
165
with :
166
166
name : package-splunkbase
167
167
path : ${{ steps.slim.outputs.OUTPUT }}
168
168
169
169
- name : Upload build to S3
170
- if : ' 3.7 ' == '3.7'
170
+ if : ${{ inputs.python_version }} == '3.7'
171
171
id : buildupload
172
172
shell : bash
173
173
env :
@@ -180,7 +180,7 @@ runs:
180
180
aws s3 cp "${{ steps.slim.outputs.OUTPUT }}" s3://ta-production-artifacts/ta-apps/
181
181
182
182
- name : Artifact Splunk parts
183
- if : ${{ !cancelled() }} && '3.7' == '3.7'
183
+ if : ${{ !cancelled() }} && ${{ inputs.python_version }} == '3.7'
184
184
uses : actions/upload-artifact@v3
185
185
with :
186
186
name : package-deployment
0 commit comments