Skip to content

Commit 878ca45

Browse files
committed
update files of remote gt to version v1.5.2 via gt
1 parent 906e068 commit 878ca45

File tree

2 files changed

+61
-38
lines changed

2 files changed

+61
-38
lines changed

.github/workflows/gt-update.yml

Lines changed: 58 additions & 35 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.2
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,23 +42,30 @@ 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+
- uses: actions/checkout@v5
5269
- id: set-matrix
5370
run: |
5471
(readarray -t REMOTES; IFS=','; echo "matrix={ 'remote': [ ${REMOTES[*]} ] }" >> "$GITHUB_OUTPUT") < <( gt remote list | sed -E "s/(.*)/'\1'/")
@@ -71,23 +88,30 @@ 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.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}"
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
90-
- uses: actions/checkout@v4
114+
- uses: actions/checkout@v5
91115
- name: reset gpg keys
92116
run: gt reset --gpg-only true -r "${{ matrix.remote }}"
93117
- name: gt update
@@ -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"
@@ -135,7 +158,7 @@ jobs:
135158
name: "Check signing-key"
136159
runs-on: ubuntu-latest
137160
steps:
138-
- uses: actions/checkout@v4
161+
- uses: actions/checkout@v5
139162
- name: check if signing key already are or will expire within the next 3 months
140163
run: |
141164
set -euo pipefail

.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.2 .github/workflows/gt-update.yml ../.github/workflows/gt-update.yml .* 37e153b5cc42751286ba57bb299b70091a3e5eaac82133a782fc07bbf4d2a3c3af193d56242e71cf807700971472b3be74b0bbd4d1884890eab841af1f467319
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)