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.2
8+ # Version: v1.6.0
99# ##################################
1010name : " gt update"
11+
12+ # gt-placeholder-trigger-start
1113on :
1214 schedule :
1315 - cron : ' 0 4 * * MON'
1416 workflow_dispatch :
17+ # gt-placeholder-trigger-end
18+
19+ permissions :
20+ contents : read
1521
1622jobs :
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,23 +42,32 @@ 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.2/install.sh" && \
44- wget "https://raw.githubusercontent.com/tegonal/gt/v1.4.2/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
51- - uses : actions/checkout@v4
68+ # gt-placeholder-gh-action-checkout-1-start
69+ - uses : actions/checkout@v5
70+ # gt-placeholder-gh-action-checkout-1-end
5271 - id : set-matrix
5372 run : |
5473 (readarray -t REMOTES; IFS=','; echo "matrix={ 'remote': [ ${REMOTES[*]} ] }" >> "$GITHUB_OUTPUT") < <( gt remote list | sed -E "s/(.*)/'\1'/")
@@ -71,23 +90,32 @@ jobs:
7190 run : |
7291 set -e
7392 # 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.2/install.sh" && \
83- wget "https://raw.githubusercontent.com/tegonal/gt/v1.4.2/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}"
93+ #!/usr/bin/env bash
94+ currentDir=$(pwd) &&
95+ tmpDir=$(mktemp -d -t gt-download-install-XXXXXXXXXX) && cd "$tmpDir" &&
96+ wget "https://raw.githubusercontent.com/tegonal/gt/main/.gt/signing-key.public.asc" &&
97+ wget "https://raw.githubusercontent.com/tegonal/gt/main/.gt/signing-key.public.asc.sig" &&
98+ gpg --verify ./signing-key.public.asc.sig ./signing-key.public.asc &&
99+ echo "public key trusted" &&
100+ mkdir ./gpg &&
101+ gpg --homedir ./gpg --import ./signing-key.public.asc &&
102+ wget "https://raw.githubusercontent.com/tegonal/gt/v1.4.4/install.sh" &&
103+ wget "https://raw.githubusercontent.com/tegonal/gt/v1.4.4/install.sh.sig" &&
104+ gpg --homedir ./gpg --verify ./install.sh.sig ./install.sh &&
105+ chmod +x ./install.sh &&
106+ echo "verification successful" ||
107+ {
108+ printf >&2 "\033[0;31mERROR\033[0m: verification failed, don't continue !!\n"
109+ exit 1
110+ } && ./install.sh && result=true ||
111+ {
112+ echo >&2 "installation failed"
113+ exit 1
114+ } && false || cd "$currentDir" && rm -r "$tmpDir" && "${result:-false}"
89115 # end install.doc.sh
90- - uses : actions/checkout@v4
116+ # gt-placeholder-gh-action-checkout-2-start
117+ - uses : actions/checkout@v5
118+ # gt-placeholder-gh-action-checkout-2-end
91119 - name : reset gpg keys
92120 run : gt reset --gpg-only true -r "${{ matrix.remote }}"
93121 - name : gt update
@@ -123,7 +151,6 @@ jobs:
123151 uses : peter-evans/create-pull-request@v7
124152 with :
125153 branch : ' gt/update/${{ matrix.remote }}'
126- base : main
127154 title : ' update files of remote ${{ matrix.remote }} to version ${{steps.gt_update.outputs.remote_version}} via gt'
128155 commit-message : ' update files of remote ${{ matrix.remote }} to version ${{steps.gt_update.outputs.remote_version}} via gt'
129156 body : " following the changes after running `gt update -r \" ${{ matrix.remote }}\" ` and reset gpg keys"
@@ -135,7 +162,9 @@ jobs:
135162 name : " Check signing-key"
136163 runs-on : ubuntu-latest
137164 steps :
138- - uses : actions/checkout@v4
165+ # gt-placeholder-gh-action-checkout-3-start
166+ - uses : actions/checkout@v5
167+ # gt-placeholder-gh-action-checkout-3-end
139168 - name : check if signing key already are or will expire within the next 3 months
140169 run : |
141170 set -euo pipefail
0 commit comments