From 1d87d79e1f5ac8031dc698fb5786de908f513be2 Mon Sep 17 00:00:00 2001 From: robstoll Date: Tue, 6 Feb 2024 12:35:55 +0000 Subject: [PATCH] update files pulled via gt --- .github/workflows/gt-update.yml | 23 +++++++++++++---------- .gt/remotes/gt/pulled.tsv | 2 +- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/gt-update.yml b/.github/workflows/gt-update.yml index 23df033c..dc154950 100644 --- a/.github/workflows/gt-update.yml +++ b/.github/workflows/gt-update.yml @@ -4,7 +4,7 @@ # / __/ -_) _ `/ _ \/ _ \/ _ `/ / It is licensed under European Union Public License 1.2 # \__/\__/\_, /\___/_//_/\_,_/_/ Please report bugs and contribute back your improvements # /___/ -# Version: v0.14.0 +# Version: v0.16.0 # ################################### name: "gt update" @@ -40,8 +40,8 @@ jobs: echo "public key trusted" && \ mkdir ./gpg && \ gpg --homedir ./gpg --import ./signing-key.public.asc && \ - wget "https://raw.githubusercontent.com/tegonal/gt/v0.14.0/install.sh" && \ - wget "https://raw.githubusercontent.com/tegonal/gt/v0.14.0/install.sh.sig" && \ + wget "https://raw.githubusercontent.com/tegonal/gt/v0.16.0/install.sh" && \ + wget "https://raw.githubusercontent.com/tegonal/gt/v0.16.0/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) && \ @@ -58,7 +58,7 @@ jobs: strategy: fail-fast: false matrix: ${{ fromJson(needs.determine_remotes.outputs.matrix) }} - name: 'Update remote ${{ matrix.remote }}' + name: 'Update ${{ matrix.remote }}' steps: - name: Import gpg key(s) defined in vars.PUBLIC_GPG_KEYS_WE_TRUST and secrets.PUBLIC_GPG_KEYS_WE_TRUST run: | @@ -79,8 +79,8 @@ jobs: echo "public key trusted" && \ mkdir ./gpg && \ gpg --homedir ./gpg --import ./signing-key.public.asc && \ - wget "https://raw.githubusercontent.com/tegonal/gt/v0.14.0/install.sh" && \ - wget "https://raw.githubusercontent.com/tegonal/gt/v0.14.0/install.sh.sig" && \ + wget "https://raw.githubusercontent.com/tegonal/gt/v0.16.0/install.sh" && \ + wget "https://raw.githubusercontent.com/tegonal/gt/v0.16.0/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) && \ @@ -91,17 +91,20 @@ jobs: - name: reset gpg keys run: gt reset --gpg-only true -r "${{ matrix.remote }}" - name: gt update - run: gt update -r "${{ matrix.remote }}" + id: gt_update + run: | + gt update -r "${{ matrix.remote }}" + echo "remote_version=$(git --git-dir='.gt/remotes/${{ matrix.remote}}/repo/.git' tag | sort --version-sort | tail -n 1)" >> $GITHUB_OUTPUT - name: git status run: git status - name: Create pull request if necessary - uses: peter-evans/create-pull-request@v5 + uses: peter-evans/create-pull-request@v6 with: branch: 'gt/update/${{ matrix.remote }}' base: main - title: 'Changes via gt update for remote ${{ matrix.remote }}' + title: 'update files of remote ${{ matrix.remote }} to version ${{steps.gt_update.outputs.remote_version}} via gt' commit-message: update files pulled via gt - body: "following the changes after running `gt update -r \"${{ matrix.remote }}\"` (among other things)" + body: "following the changes after running `gt update -r \"${{ matrix.remote }}\"` and reset gpg keys" delete-branch: true token: ${{ secrets.AUTO_PR_TOKEN }} push-to-fork: ${{ secrets.AUTO_PR_FORK_NAME }} diff --git a/.gt/remotes/gt/pulled.tsv b/.gt/remotes/gt/pulled.tsv index a600ad7c..e659846f 100644 --- a/.gt/remotes/gt/pulled.tsv +++ b/.gt/remotes/gt/pulled.tsv @@ -1,3 +1,3 @@ #@ Version: 1.0.0 tag file relativeTarget sha512 -v0.14.0 .github/workflows/gt-update.yml ../.github/workflows/gt-update.yml c54eabfe963874762942d742ac0cab9213f6579ef932e6e40ba890d5317199b19c57541e465aa291bd702725bdc8c3f49ddb01c4bc95a8fff11ff6e044ee6a84 +v0.16.0 .github/workflows/gt-update.yml ../.github/workflows/gt-update.yml b084f26e204a737ba6a3c0bf67099ba68e419daa7229cc3dd88e68b5c7aec82a666742b9711f323d71f06f39c2ec9d23f3bf29eb96f4373d68dfab6cbdfd989c