1
1
name : " Package Release"
2
- run-name : " Package Release ${{ github.ref_name }}"
2
+ run-name : " Package Release ${{ inputs.version }}"
3
3
4
4
on :
5
5
workflow_call :
6
6
inputs :
7
+ version :
8
+ description : " The version being built"
9
+ type : string
10
+ required : true
7
11
ref :
8
12
description : " The git reference to build"
9
13
type : string
46
50
-H "Accept: application/vnd.github+json" \
47
51
-H "X-GitHub-Api-Version: 2022-11-28" \
48
52
/repos/${{ github.repository }}/releases/generate-notes \
49
- -f "tag_name=${{ inputs.ref }}" --jq '.body' > changelog
53
+ -f "tag_name=${{ inputs.version }}" --jq '.body' > changelog
50
54
51
55
# This will fill in the release notes from the previously generated changelog
52
56
- name : " Build package.xml"
86
90
retention-days : 3
87
91
88
92
- name : " Upload release artifacts"
89
- run : gh release upload ${{ github.ref_name }} ${{ env.PACKAGE_FILE }} ${{ env.PACKAGE_FILE }}.sig
93
+ run : gh release upload ${{ inputs.version }} ${{ env.PACKAGE_FILE }} ${{ env.PACKAGE_FILE }}.sig
90
94
continue-on-error : true
91
95
92
96
build-windows :
@@ -192,7 +196,7 @@ jobs:
192
196
- name : " Upload DLL and PDB files as build artifacts"
193
197
uses : actions/upload-artifact@v4
194
198
with :
195
- name : php_mongodb-${{ github.ref_name }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.arch }}
199
+ name : php_mongodb-${{ inputs.version }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.arch }}
196
200
path : |
197
201
php_mongodb.dll
198
202
php_mongodb.dll.sig
@@ -206,7 +210,7 @@ jobs:
206
210
207
211
- name : " Create and upload release artifact"
208
212
run : |
209
- ARCHIVE=php_mongodb-${{ github.ref_name }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.arch }}.zip
213
+ ARCHIVE=php_mongodb-${{ inputs.version }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.arch }}.zip
210
214
zip ${ARCHIVE} php_mongodb.dll php_mongodb.dll.sig php_mongodb.pdb CREDITS CONTRIBUTING.md LICENSE README.md THIRD_PARTY_NOTICES
211
- gh release upload ${{ github.ref_name }} ${ARCHIVE}
215
+ gh release upload ${{ inputs.version }} ${ARCHIVE}
212
216
continue-on-error : true
0 commit comments