-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from tegonal/add-gt-update
add gt-update to get automatic updates in form of PRs
- Loading branch information
Showing
6 changed files
with
166 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# | ||
# __ __ | ||
# / /____ ___ ____ ___ ___ _/ / This script is provided to you by https://github.com/tegonal/gt | ||
# / __/ -_) _ `/ _ \/ _ \/ _ `/ / It is licensed under European Union Public License 1.2 | ||
# \__/\__/\_, /\___/_//_/\_,_/_/ Please report bugs and contribute back your improvements | ||
# /___/ | ||
# Version: v0.13.3 | ||
# | ||
################################### | ||
name: "gt update" | ||
on: | ||
schedule: | ||
- cron: '0 4 * * MON' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
Update: | ||
runs-on: ubuntu-latest | ||
if: github.repository_owner == 'tegonal' | ||
steps: | ||
- name: Import gpg key(s) defined in vars.PUBLIC_GPG_KEYS_WE_TRUST and secrets.PUBLIC_GPG_KEYS_WE_TRUST | ||
run: | | ||
gpg --import - <<< "${{ vars.PUBLIC_GPG_KEYS_WE_TRUST }}" && success=true \ | ||
|| (echo "could not import GPG keys via vars.PUBLIC_GPG_KEYS_WE_TRUST -- maybe it's not defined"; exit 1) && \ | ||
false || gpg --import - <<< "${{ secrets.PUBLIC_GPG_KEYS_WE_TRUST }}" && success=true \ | ||
|| (echo "could not import GPG keys via secrets.PUBLIC_GPG_KEYS_WE_TRUST -- maybe it's not defined"; exit 1) && \ | ||
false || "${success:-false}" && echo "was able to import GPGs either via vars or secrets (or via both -- see above)" | ||
- uses: actions/checkout@v4 | ||
- name: Install gt | ||
run: | | ||
set -e | ||
# see install.doc.sh in https://github.com/tegonal/gt, MODIFY THERE NOT HERE (please report bugs) | ||
currentDir=$(pwd) && \ | ||
tmpDir=$(mktemp -d -t gt-download-install-XXXXXXXXXX) && cd "$tmpDir" && \ | ||
wget "https://raw.githubusercontent.com/tegonal/gt/main/.gt/signing-key.public.asc" && \ | ||
wget "https://raw.githubusercontent.com/tegonal/gt/main/.gt/signing-key.public.asc.sig" && \ | ||
gpg --verify ./signing-key.public.asc.sig ./signing-key.public.asc && \ | ||
echo "public key trusted" && \ | ||
mkdir ./gpg && \ | ||
gpg --homedir ./gpg --import ./signing-key.public.asc && \ | ||
wget "https://raw.githubusercontent.com/tegonal/gt/v0.13.3/install.sh" && \ | ||
wget "https://raw.githubusercontent.com/tegonal/gt/v0.13.3/install.sh.sig" && \ | ||
gpg --homedir ./gpg --verify ./install.sh.sig ./install.sh && \ | ||
chmod +x ./install.sh && \ | ||
echo "verification successful" || (echo "!! verification failed, don't continue !!"; exit 1) && \ | ||
./install.sh && result=true || (echo "installation failed"; exit 1) && \ | ||
false || cd "$currentDir" && rm -r "$tmpDir" && "${result:-false}" | ||
# end install.doc.sh | ||
- name: reset gpg keys | ||
run: gt reset --gpg-only true | ||
- name: gt update | ||
run: gt update | ||
- name: git status | ||
run: git status | ||
- name: Create pull request if necessary | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
branch: gt/update | ||
base: main | ||
title: Changes via gt update | ||
commit-message: update files pulled via gt | ||
body: "following the changes after running `gt update` (among other things)" | ||
delete-branch: true | ||
token: ${{ secrets.AUTO_PR_TOKEN }} | ||
push-to-fork: ${{ secrets.AUTO_PR_FORK_NAME }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[core] | ||
repositoryformatversion = 0 | ||
filemode = true | ||
bare = false | ||
logallrefupdates = true | ||
[remote "gt"] | ||
url = https://github.com/tegonal/gt | ||
fetch = +refs/heads/*:refs/remotes/gt/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
-----BEGIN PGP PUBLIC KEY BLOCK----- | ||
|
||
mQINBGKzJKUBEACa43/pR6cU85quHQuaZs/rtSlq+2hnz0kmei/n3TlsQkeXgcKH | ||
Fd/j6xEcMp2giIDcFFFhfhMhzzB5CtnSpLCTYcwW3bYiMn/oKBgqPobATch/2/VR | ||
J7+M4ig8pClFX6eZcP8BiRT9hDaLuanWWFdj51iydfjsgAB14Xh+IPTrFElqDBn9 | ||
J8UDFn4m7G3mJmr5oMF+oEZA9m1UNV4yVQbiip4ftnnK/ESqwAVnS6JIrFrJheo5 | ||
SXB6tag9O1I8ZEfCwlpkK8pr7Pf5RRu+1amHjCzTqSyTfmqt0eR04ZVS9QAc/E5S | ||
D18TFFXo5UHYgpBj9bClV4aTg1UjWm+QBbbqHLUGwr0y/JdCTR8xR4NkPuyjhd4b | ||
NY9J+n0jaWkBBT2Pz1Di4etT27ZXDwgX7ys0aKcbHt9IWlsEUyCPnNB/hW5tsqIp | ||
iH5jSTvF/GasbW0OGLaACSxNOfp5XPEdSqPnOuurMTskA2G1JjOIchzR/d/HyO8l | ||
SiFZlsWnK0H+DyoUtqmqhySTa+ooNP9JpB6wJoQLaxihYxUbUXHvFEPnzVTh7Nx2 | ||
RRWhaU0T0gD8LzbHaGTnIA6zy0uLdxLlcwzzaO5DnAWLnsqTdRfzqM5rXlYYixsA | ||
Yf7RNE73Bl/7GBDJHj8YtAZyztDAKXW7e1U3YIDuyqMM6a90mEnEIFgs4wARAQAB | ||
tDJUZWdvbmFsIEdlbm9zc2Vuc2NoYWZ0IChHaXRIdWIpIDxpbmZvQHRlZ29uYWwu | ||
Y29tPokCUwQTAQoAPRYhBBTlbUw9oj+t9UpA42uCuyvs7gRHBQJisySlAhsBBQkF | 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QBb0tNrOjxxGfzodC8nZf7zgKhxY6TExzGV5MzSg2 | ||
1nNRv3bNSnkdEjwN+/Y1n8RxCaOIGQSu/vJK+C+eSTRaMiJR2Xh3xlSuHLDOGQee | ||
4J5CSTm6Ht/fZSKUXPmkOySKCkiHsQYwWLHBDMkxLLjTNkKIXDNPu5Edc2oXZ4os | ||
UOT3AELDi4seNPA9gCFSh4sY8ze3D6kjHSBZYfFZL4OU+/Sv+2nMzF9eBwQkngMy | ||
eriVPO8dhe9eVc9dqEJdyEKYJbQ0qZ8+s7LJmSPzHsuoWcp7M01zDxyYuza1Lp+Z | ||
AKmNxev+4lv1NvmlX1ZsTOSFLXjm+dt5+NbHEtm/O3jBKhlAvdHVQ2nU/gs9cMdb | ||
1U+5P8SsVvBSPgn11q1DayAlUqxX0ydCS43tDakKc1762WXXxCyuvqT6triZ7XnA | ||
CnUWZTkAlC3I2DZOAiGKPYkZnBnFCwxBaPkHAy8zizXQ2C4/HhQR3dqLYeEWWo6v | ||
f2vVxNWadi/2nUG/SaIP50nxjd1aDrG9sDgi | ||
=eXmm | ||
-----END PGP PUBLIC KEY BLOCK----- | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--directory "lib/gt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#@ Version: 1.0.0 | ||
tag file relativeTarget sha512 | ||
v0.13.3 .github/workflows/gt-update.yml ../.github/gt-update.yml ab953ea436ff4c311d7cfa568a565c3bbb6785993d8e2daee1398bb077641c21e3a3b94ac4646cab7017c7edc4acec3e404292b1d8d1b4eb5f97a47d34368f63 |