Skip to content

Commit 3ae43b2

Browse files
committed
update files of remote gt to version v1.5.2 via gt
1 parent 435889b commit 3ae43b2

File tree

2 files changed

+58
-35
lines changed

2 files changed

+58
-35
lines changed

.github/workflows/gt-update.yml

Lines changed: 55 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,29 @@
55
# \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under European Union Public License v. 1.2
66
# /___/ Please report bugs and contribute back your improvements
77
#
8-
# Version: v1.4.4
8+
# Version: v1.5.2
99
###################################
1010
name: "gt update"
11+
12+
#gt-placeholder-trigger-start
1113
on:
1214
schedule:
1315
- cron: '0 4 * * MON'
1416
workflow_dispatch:
17+
#gt-placeholder-trigger-end
18+
19+
permissions:
20+
contents: read
1521

1622
jobs:
1723
determine_remotes:
1824
name: Determine Remotes
1925
runs-on: ubuntu-latest
26+
27+
# gt-placeholder-owner-start
2028
if: github.repository_owner == 'tegonal'
29+
# gt-placeholder-owner-end
30+
2131
outputs:
2232
matrix: ${{ steps.set-matrix.outputs.matrix }}
2333
steps:
@@ -32,21 +42,28 @@ jobs:
3242
run: |
3343
set -e
3444
# see install.doc.sh in https://github.com/tegonal/gt, MODIFY THERE NOT HERE (please report bugs)
35-
currentDir=$(pwd) && \
36-
tmpDir=$(mktemp -d -t gt-download-install-XXXXXXXXXX) && cd "$tmpDir" && \
37-
wget "https://raw.githubusercontent.com/tegonal/gt/main/.gt/signing-key.public.asc" && \
38-
wget "https://raw.githubusercontent.com/tegonal/gt/main/.gt/signing-key.public.asc.sig" && \
39-
gpg --verify ./signing-key.public.asc.sig ./signing-key.public.asc && \
40-
echo "public key trusted" && \
41-
mkdir ./gpg && \
42-
gpg --homedir ./gpg --import ./signing-key.public.asc && \
43-
wget "https://raw.githubusercontent.com/tegonal/gt/v1.4.4/install.sh" && \
44-
wget "https://raw.githubusercontent.com/tegonal/gt/v1.4.4/install.sh.sig" && \
45-
gpg --homedir ./gpg --verify ./install.sh.sig ./install.sh && \
46-
chmod +x ./install.sh && \
47-
echo "verification successful" || (printf >&2 "\033[0;31mERROR\033[0m: verification failed, don't continue !!\n"; exit 1) && \
48-
./install.sh && result=true || (echo >&2 "installation failed"; exit 1) && \
49-
false || cd "$currentDir" && rm -r "$tmpDir" && "${result:-false}"
45+
#!/usr/bin/env bash
46+
currentDir=$(pwd) &&
47+
tmpDir=$(mktemp -d -t gt-download-install-XXXXXXXXXX) && cd "$tmpDir" &&
48+
wget "https://raw.githubusercontent.com/tegonal/gt/main/.gt/signing-key.public.asc" &&
49+
wget "https://raw.githubusercontent.com/tegonal/gt/main/.gt/signing-key.public.asc.sig" &&
50+
gpg --verify ./signing-key.public.asc.sig ./signing-key.public.asc &&
51+
echo "public key trusted" &&
52+
mkdir ./gpg &&
53+
gpg --homedir ./gpg --import ./signing-key.public.asc &&
54+
wget "https://raw.githubusercontent.com/tegonal/gt/v1.4.4/install.sh" &&
55+
wget "https://raw.githubusercontent.com/tegonal/gt/v1.4.4/install.sh.sig" &&
56+
gpg --homedir ./gpg --verify ./install.sh.sig ./install.sh &&
57+
chmod +x ./install.sh &&
58+
echo "verification successful" ||
59+
{
60+
printf >&2 "\033[0;31mERROR\033[0m: verification failed, don't continue !!\n"
61+
exit 1
62+
} && ./install.sh && result=true ||
63+
{
64+
echo >&2 "installation failed"
65+
exit 1
66+
} && false || cd "$currentDir" && rm -r "$tmpDir" && "${result:-false}"
5067
# end install.doc.sh
5168
- uses: actions/checkout@v5
5269
- id: set-matrix
@@ -71,21 +88,28 @@ jobs:
7188
run: |
7289
set -e
7390
# see install.doc.sh in https://github.com/tegonal/gt, MODIFY THERE NOT HERE (please report bugs)
74-
currentDir=$(pwd) && \
75-
tmpDir=$(mktemp -d -t gt-download-install-XXXXXXXXXX) && cd "$tmpDir" && \
76-
wget "https://raw.githubusercontent.com/tegonal/gt/main/.gt/signing-key.public.asc" && \
77-
wget "https://raw.githubusercontent.com/tegonal/gt/main/.gt/signing-key.public.asc.sig" && \
78-
gpg --verify ./signing-key.public.asc.sig ./signing-key.public.asc && \
79-
echo "public key trusted" && \
80-
mkdir ./gpg && \
81-
gpg --homedir ./gpg --import ./signing-key.public.asc && \
82-
wget "https://raw.githubusercontent.com/tegonal/gt/v1.4.4/install.sh" && \
83-
wget "https://raw.githubusercontent.com/tegonal/gt/v1.4.4/install.sh.sig" && \
84-
gpg --homedir ./gpg --verify ./install.sh.sig ./install.sh && \
85-
chmod +x ./install.sh && \
86-
echo "verification successful" || (printf >&2 "\033[0;31mERROR\033[0m: verification failed, don't continue !!\n"; exit 1) && \
87-
./install.sh && result=true || (echo >&2 "installation failed"; exit 1) && \
88-
false || cd "$currentDir" && rm -r "$tmpDir" && "${result:-false}"
91+
#!/usr/bin/env bash
92+
currentDir=$(pwd) &&
93+
tmpDir=$(mktemp -d -t gt-download-install-XXXXXXXXXX) && cd "$tmpDir" &&
94+
wget "https://raw.githubusercontent.com/tegonal/gt/main/.gt/signing-key.public.asc" &&
95+
wget "https://raw.githubusercontent.com/tegonal/gt/main/.gt/signing-key.public.asc.sig" &&
96+
gpg --verify ./signing-key.public.asc.sig ./signing-key.public.asc &&
97+
echo "public key trusted" &&
98+
mkdir ./gpg &&
99+
gpg --homedir ./gpg --import ./signing-key.public.asc &&
100+
wget "https://raw.githubusercontent.com/tegonal/gt/v1.4.4/install.sh" &&
101+
wget "https://raw.githubusercontent.com/tegonal/gt/v1.4.4/install.sh.sig" &&
102+
gpg --homedir ./gpg --verify ./install.sh.sig ./install.sh &&
103+
chmod +x ./install.sh &&
104+
echo "verification successful" ||
105+
{
106+
printf >&2 "\033[0;31mERROR\033[0m: verification failed, don't continue !!\n"
107+
exit 1
108+
} && ./install.sh && result=true ||
109+
{
110+
echo >&2 "installation failed"
111+
exit 1
112+
} && false || cd "$currentDir" && rm -r "$tmpDir" && "${result:-false}"
89113
# end install.doc.sh
90114
- uses: actions/checkout@v5
91115
- name: reset gpg keys
@@ -123,7 +147,6 @@ jobs:
123147
uses: peter-evans/create-pull-request@v7
124148
with:
125149
branch: 'gt/update/${{ matrix.remote }}'
126-
base: main
127150
title: 'update files of remote ${{ matrix.remote }} to version ${{steps.gt_update.outputs.remote_version}} via gt'
128151
commit-message: 'update files of remote ${{ matrix.remote }} to version ${{steps.gt_update.outputs.remote_version}} via gt'
129152
body: "following the changes after running `gt update -r \"${{ matrix.remote }}\"` and reset gpg keys"

.gt/remotes/gt/pulled.tsv

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#@ Version: 1.1.0
2-
tag file relativeTarget tagFilter sha512
3-
v1.4.4 .github/workflows/gt-update.yml ../.github/workflows/gt-update.yml .* 7098d4d692a9f105399e2d26c4a77573b87de2cd5dc34c5e0af23fc0b1d99babec513ff995906a118e5b44fb055ff4da13f4ba4b57f12e4e415cb26198083dce
1+
#@ Version: 1.2.0
2+
tag file relativeTarget tagFilter hasPlaceholder sha512
3+
v1.5.2 .github/workflows/gt-update.yml ../.github/workflows/gt-update.yml .* true fec1718358a3dc04f0d70ebb4c04c22a10ada6188da25a3dcf2f5c87b67ca2f9e27c77d7c938db20b79c75c003e36fa36e1b7af373b82544774f8968e25d5eae

0 commit comments

Comments
 (0)