Skip to content

Commit a7bf5b8

Browse files
committed
fixup! TO-DROP: verify that the pacman work-around works
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent a0c2610 commit a7bf5b8

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/sync.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,16 @@ jobs:
3131
run_id=8953014074 &&
3232
name=MSYS-packages &&
3333
34-
# Yeah, yeah, I know, it does not belong in `/usr/`, but this is just for testing, okay?
35-
curl -Lo /usr/bin/jq.exe https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-windows-amd64.exe &&
36-
3734
curl -H "Authorization: token ${{secrets.GITHUB_TOKEN}}" \
3835
-L https://api.github.com/repos/$repository/actions/runs/$run_id/artifacts |
39-
jq -r '.artifacts[] | select(.name | test("'$name'")) | [.name, .archive_download_url] | @tsv' |
40-
tr -d '\r' |
36+
sed -n '
37+
/^ {/{s/.*//;x}
38+
/^ "name":/H
39+
/^ "archive_download_url":/H
40+
/^ }/{
41+
s/.*//;x
42+
s/.*"name": "\([^"]*\).*": "\([^"]*\).*/\1 \2/p
43+
}' |
4144
while read name url
4245
do
4346
echo "$name"
@@ -47,7 +50,7 @@ jobs:
4750
unzip -q -d "$name" /tmp/"$name".zip ||
4851
return 1
4952
done &&
50-
tar -C / -xvf "$PWD"/MSYS-packages/pacman-*.pkg.tar* usr/bin/pacman.exe
53+
tar -xvf "$PWD"/MSYS-packages/pacman-*.pkg.tar* usr/bin/pacman.exe
5154
- name: Update all Pacman packages
5255
shell: pwsh
5356
run: |

0 commit comments

Comments
 (0)