Skip to content

Commit a729d78

Browse files
committed
release-git(pacman-packages): do support the new Pacman repository
In git-for-windows/build-extra#595, I started the official transition of Git for Windows' Pacman repository away from an Azure Blob container in my personal account to https://github.com/git-for-windows/pacman-repo. For the transition period, this still requires the token to upload to the Azure Blob container, but it also already requires credentials to push to `pacman-repo`, in particular some committer information. The `pacman-packages` job of the `release-git` workflow still needed this, as I forgot to do this as part of 2d0492 (build-and-deploy/release-git: support the new Pacman repository, 2025-02-17). Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 20850d1 commit a729d78

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/actions/pacman-packages/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,14 @@ runs:
114114
shell: bash
115115
env:
116116
GPG_OPTIONS: "--batch --yes --no-tty --list-options no-show-photos --verify-options no-show-photos --pinentry-mode loopback"
117+
GPGKEY: ${{ inputs.gpg-key }}
117118
run: |
118119
mkdir -p "$HOME" &&
119120
echo '${{ inputs.priv-gpg-key }}' | tr % '\n' | gpg $GPG_OPTIONS --import &&
120-
git config --global gpg.program "$RUNNER_TEMP/build-extra/gnupg-with-gpgkey.sh"
121+
git config --global gpg.program "$RUNNER_TEMP/build-extra/gnupg-with-gpgkey.sh" &&
122+
info="$(gpg --list-keys --with-colons "${GPGKEY%% *}" | cut -d : -f 1,10 | sed -n '/^uid/{s|uid:||p;q}')" &&
123+
git config --global user.name "${info% <*}" &&
124+
git config --global user.email "<${info#*<}"
121125
- uses: actions/create-github-app-token@v1
122126
id: pacman-repo-token
123127
with:

0 commit comments

Comments
 (0)