11name : git-artifacts
2- run-name : Build git-artifacts (${{ inputs.architecture }})
2+ run-name : Build git-artifacts (${{ inputs.artifacts != '' && format('{0} ', inputs.artifacts) || '' }}${{ inputs. architecture }})
33
44on :
55 workflow_dispatch :
4545 pkg :
4646 runs-on : ${{ github.event.inputs.architecture == 'aarch64' && fromJSON('["Windows", "ARM64"]') || 'windows-latest' }}
4747 outputs :
48- artifact_matrix : ${{steps.artifact-build-matrix.outputs.matrix }}
48+ artifact_matrix : ${{ steps.artifact-build-matrix.outputs.result }}
4949 msystem : ${{steps.configure-environment.outputs.MSYSTEM}}
5050 mingw_package_prefix : ${{steps.configure-environment.outputs.MINGW_PACKAGE_PREFIX}}
5151 sdk_repo_arch : ${{steps.configure-environment.outputs.SDK_REPO_ARCH}}
@@ -195,7 +195,7 @@ jobs:
195195 try {
196196 const output = createArtifactsMatrix(process.env.ARTIFACTS_TO_BUILD, process.env.ARCHITECTURE)
197197 core.info(`Will be using the following matrix: ${JSON.stringify(output)}`)
198- core.setOutput('matrix', output)
198+ return output
199199 } catch (e) {
200200 core.setFailed(e.message)
201201 }
@@ -268,7 +268,8 @@ jobs:
268268 echo '${{secrets.PRIVGPGKEY}}' | tr % '\n' | gpg $GPG_OPTIONS --import &&
269269 info="$(gpg --list-keys --with-colons "${GPGKEY%% *}" | cut -d : -f 1,10 | sed -n '/^uid/{s|uid:||p;q}')" &&
270270 git config --global user.name "${info% <*}" &&
271- git config --global user.email "<${info#*<}"
271+ git config --global user.email "<${info#*<}" &&
272+ echo "PACKAGER=$info" >>$GITHUB_ENV
272273 env :
273274 GPGKEY : ${{secrets.GPGKEY}}
274275 - name : update check-run
@@ -287,7 +288,10 @@ jobs:
287288 set -x
288289 BUILD_SRC=$(test x86_64 != "$ARCHITECTURE" || echo "--build-src-pkg")
289290 # Make sure that there is a `/usr/bin/git` that can be used by `makepkg-mingw`
290- printf '#!/bin/sh\n\nexec '$MINGW_PREFIX'/bin/git.exe "$@"\n' >/usr/bin/git &&
291+ if test ! -x /usr/bin/git
292+ then
293+ printf '#!/bin/sh\n\nexec '$MINGW_PREFIX'/bin/git.exe "$@"\n' >/usr/bin/git
294+ fi &&
291295 (
292296 cd /usr/src/MINGW-packages/mingw-w64-git/src/git &&
293297 /usr/src/build-extra/please.sh build-mingw-w64-git --reset-pkgrel --only-$ARCHITECTURE $BUILD_SRC \
@@ -308,13 +312,14 @@ jobs:
308312 if test -z "$EXISTING_GIT_TAG"
309313 then
310314 git commit -s -m "mingw-w64-git: new version ($version)" PKGBUILD &&
311- git bundle create "$b"/MINGW-packages.bundle origin/main..main
315+ git bundle create "$b"/MINGW-packages.bundle origin/main..main
312316 elif ! git update-index --ignore-submodules --refresh ||
313317 ! git diff-files --ignore-submodules ||
314318 ! git diff-index --cached --ignore-submodules HEAD
315319 then
316320 echo "::warning::Uncommitted changes after build!" >&2 &&
317321 git diff >&2 &&
322+ git commit -s -m "mingw-w64-git: new version ($version)" PKGBUILD &&
318323 git bundle create "$b"/MINGW-packages.bundle main^..main
319324 fi)
320325 - name : Cache ${{env.MINGW_PACKAGE_PREFIX}}-git
0 commit comments