From c302af6baa2f2449ee10121ce310e490b629950f Mon Sep 17 00:00:00 2001 From: Robert Stoll Date: Wed, 22 Oct 2025 17:11:38 +0200 Subject: [PATCH] update tegonal-gh-commons to v4.1.0 and add install-shfmt.sh to cleanup.yml --- .editorconfig | 2 +- .github/CODE_OF_CONDUCT.md | 2 +- .github/dependabot.yml | 2 +- .github/workflows/cleanup.yml | 28 ++++++++++++++++++- .gt/remotes/tegonal-gh-commons/pulled.tsv | 22 +++++++-------- .shellcheckrc | 2 +- .../src/gt/pull-hook-functions.sh | 2 +- .../src/gt/tegonal.data.source.sh | 2 +- 8 files changed, 44 insertions(+), 18 deletions(-) diff --git a/.editorconfig b/.editorconfig index 79ba03fd..1aba0046 100644 --- a/.editorconfig +++ b/.editorconfig @@ -5,7 +5,7 @@ # \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under Creative Commons Zero v1.0 Universal # /___/ Please report bugs and contribute back your improvements # -# Version: v4.0.0 +# Version: v4.1.0 ################################### # https://editorconfig.org diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md index 29ceb24c..ac47b871 100644 --- a/.github/CODE_OF_CONDUCT.md +++ b/.github/CODE_OF_CONDUCT.md @@ -6,7 +6,7 @@ # \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under Creative Commons Zero v1.0 Universal # /___/ Please report bugs and contribute back your improvements # -# Version: v4.0.0 +# Version: v4.1.0 ################################### --> # Contributor Covenant Code of Conduct diff --git a/.github/dependabot.yml b/.github/dependabot.yml index bd9459ec..c710a51b 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,7 +5,7 @@ # \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under Creative Commons Zero v1.0 Universal # /___/ Please report bugs and contribute back your improvements # -# Version: v4.0.0 +# Version: v4.1.0 ################################### version: 2 updates: diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml index 6a9ebae3..2cf6132a 100644 --- a/.github/workflows/cleanup.yml +++ b/.github/workflows/cleanup.yml @@ -5,7 +5,7 @@ # \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under Creative Commons Zero v1.0 Universal # /___/ Please report bugs and contribute back your improvements # -# Version: v4.0.0 +# Version: v4.1.0 ################################### name: Cleanup @@ -22,8 +22,33 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 + + #gt-placeholder-install-dependencies-start + - name: Install shfmt + run: ./src/ci/install-shfmt.sh + #gt-placeholder-install-dependencies-end + - name: Cleanup Sources run: ./scripts/cleanup-on-push-to-main.sh + + - name: Check if actor is collaborator + id: check-collab + run: | + user="${{ github.actor }}" + repo="${{ github.repository }}" + status=$(curl -s -o /dev/null -w '%{http_code}' \ + -H "Authorization: Bearer $GITHUB_TOKEN" \ + -H "Accept: application/vnd.github+json" \ + "https://api.github.com/repos/$repo/collaborators/$user") + echo "status $status for user $user" + if [ "$status" = "204" ]; then + echo "reviewer=$user" >> $GITHUB_OUTPUT + else + echo "reviewer=" >> $GITHUB_OUTPUT + fi + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Create Pull Request if necessary uses: peter-evans/create-pull-request@v7 with: @@ -34,3 +59,4 @@ jobs: delete-branch: true token: ${{ secrets.AUTO_PR_TOKEN }} push-to-fork: ${{ vars.AUTO_PR_FORK_NAME != '' && vars.AUTO_PR_FORK_NAME || secrets.AUTO_PR_FORK_NAME }} + reviewers: ${{ steps.check-collab.outputs.reviewer }} diff --git a/.gt/remotes/tegonal-gh-commons/pulled.tsv b/.gt/remotes/tegonal-gh-commons/pulled.tsv index 3a0b6507..661a3fbb 100644 --- a/.gt/remotes/tegonal-gh-commons/pulled.tsv +++ b/.gt/remotes/tegonal-gh-commons/pulled.tsv @@ -1,13 +1,13 @@ #@ Version: 1.1.0 tag file relativeTarget tagFilter sha512 -v4.0.0 src/.github/workflows/cleanup.yml ../.github/workflows/cleanup.yml .* dc047c2cd09fb56b696e9dd58b88f3c7864fb339e338d5b37a17734b740bdde7068a200710ddae3e501e50fa022e51ca84ede7fc2705e8929ccb4eb608651736 -v4.0.0 src/.github/dependabot.yml ../.github/dependabot.yml .* 5c892f9c620166366e048676a6c2e6ef3e027c577c56349b51ffe45ec9f3b4614b1c1e08fcfe54c7549d6cc5b021d586b24cd872c2d16181784d8f1813214c0a -v4.0.0 src/.github/CODE_OF_CONDUCT.md ../.github/CODE_OF_CONDUCT.md .* 603fc1d30b559b67e7d3eba10047d8dd6c83a1c7d0cf0fe63318ad694df87e388c38e1d8e203f4fbe7ca51e60954347cd79d989203c2cba31173e05a7178568d -v4.0.0 src/.github/PULL_REQUEST_TEMPLATE.md ../.github/PULL_REQUEST_TEMPLATE.md .* 9112d1ea1f72ea250cdfe686fc152e63f2e0cdcea9c46935289471d7a3f54c35af8a3f283570f5d863e936c7782939c7b1548cb7d4ccda712bbf9314926f58cb -v4.0.0 src/gt/pull-hook-functions.sh ../lib/tegonal-gh-commons/src/gt/pull-hook-functions.sh .* f59d568827f25cce73e9e23603140550c68a3da4650a9aad76e8545e12ed2e46843392f564d372281c2b107460c6caee3561b2c366282b5f3cf09d2b9d3dc9d4 -v4.0.0 src/.github/Contributor Agreement.txt ../.github/Contributor Agreement.txt .* 0b9a8a954edf302ca5fe0062b7e283d3da06a6bc0631a812663095a78b3a734cefb43b725ae342694d770be75206124c42a1150e168fac33f28aebea0bda35ec -v4.0.0 src/gt/signing-key.public.asc signing-key.public.asc .* d81379cb2f3bf19f8a30a2b5e88e5fb5a924eb86dc289554faf5a035babe66012407b2fd265b18112380c2b6e5698e6f0308839df507423066520ff34cc82180 -v4.0.0 src/gt/signing-key.public.asc.actual_sig signing-key.public.asc.actual_sig .* a05c1d55da5073830a7ecdc117f77526bc90586f9bb049ccd809098432fb5d9cb4e36e5e47b1508aa651cea76f1f2d7f501793053022c13df51321f02593b810 -v4.0.0 src/dotfiles/.editorconfig ../.editorconfig .* 3bbf7be3e68d3a208f1ee87ea081e0c784614a754137fd2b9caa78759895a7c33cd3d052ffc79b08f5e0a5e7a8fbecad402f1a7ddd33dd5d379522c65662ca02 -v4.0.0 src/dotfiles/.shellcheckrc ../.shellcheckrc .* 182af1738fd2a8d1c23f7c575c7e8f222f8a20ac92122a6edaeffed74c19bce2f9a68c9e6a85eb7d56b4207a4634d8df8b166215d0fed43aa85d64c6ed3c8229 -v4.0.0 src/gt/tegonal.data.source.sh ../lib/tegonal-gh-commons/src/gt/tegonal.data.source.sh .* 96d625aef1f66abc797ddfdb8daf6b2784b65ec0803bd97a2134461126f07eaea30e697a5a266f0e45ce95b3d3f0acf5c542e36c72f19fd044f1ef950ee9afb0 +v4.1.0 src/.github/workflows/cleanup.yml ../.github/workflows/cleanup.yml .* a1d516b76d60f553496060c51fd024fa8da0c34eb0eff4269376905329ac99e8d0d6237cea30d77fa09011434ea099a81efeb5efef34607fe25b0d5b8ab3b9f4 +v4.1.0 src/.github/dependabot.yml ../.github/dependabot.yml .* 9a826b978c760f9c7f7340ffd200708d021049b4da540024611d50b3ec1d387b4824e02876d15c91712b3e833fdc0995da2c23e059dcdb917e54dec015e4cd31 +v4.1.0 src/.github/CODE_OF_CONDUCT.md ../.github/CODE_OF_CONDUCT.md .* 77eba75efe6c3d2d0db6cdcad663c81b646d12362a724bf7dc8c320b934597d1822dfa02276d220ba97a3356fe40a001744536e13ab0ec4da96c6a6ede393b68 +v4.1.0 src/.github/PULL_REQUEST_TEMPLATE.md ../.github/PULL_REQUEST_TEMPLATE.md .* 9112d1ea1f72ea250cdfe686fc152e63f2e0cdcea9c46935289471d7a3f54c35af8a3f283570f5d863e936c7782939c7b1548cb7d4ccda712bbf9314926f58cb +v4.1.0 src/gt/pull-hook-functions.sh ../lib/tegonal-gh-commons/src/gt/pull-hook-functions.sh .* 66b6719ec896946dd1bc99d019f1ddcf5fdda2cf276a1d83aca8b29dce2c2c4de1a6a2b5073c280ed8e9068922a5ab2d946ed87363b93324147a91142e7cbc50 +v4.1.0 src/.github/Contributor Agreement.txt ../.github/Contributor Agreement.txt .* 0b9a8a954edf302ca5fe0062b7e283d3da06a6bc0631a812663095a78b3a734cefb43b725ae342694d770be75206124c42a1150e168fac33f28aebea0bda35ec +v4.1.0 src/gt/signing-key.public.asc signing-key.public.asc .* d81379cb2f3bf19f8a30a2b5e88e5fb5a924eb86dc289554faf5a035babe66012407b2fd265b18112380c2b6e5698e6f0308839df507423066520ff34cc82180 +v4.1.0 src/gt/signing-key.public.asc.actual_sig signing-key.public.asc.actual_sig .* a05c1d55da5073830a7ecdc117f77526bc90586f9bb049ccd809098432fb5d9cb4e36e5e47b1508aa651cea76f1f2d7f501793053022c13df51321f02593b810 +v4.1.0 src/dotfiles/.editorconfig ../.editorconfig .* a2d2ece88c2c11147490c310d38588541a285fa454b47ca33b45b3af495082d52b37341b75a5876d020d307f70a992489abf1a7aa9cad461e42edcebce1208af +v4.1.0 src/dotfiles/.shellcheckrc ../.shellcheckrc .* 77189bfbc880dd4d78ebe2d6d153fe790f3fc2ff9313eea556c21dc313546a262cf4f129c1d3fe3895db73080cb583b2938411c32e6c9e08c83c97ffd207c28e +v4.1.0 src/gt/tegonal.data.source.sh ../lib/tegonal-gh-commons/src/gt/tegonal.data.source.sh .* e30bf5fbfa25ab155395d6491fb13e20acf2a01913dcd63796391385370850ebd15b0d99ec4a59a7db6856eb18836f87d6ef55bec5ffc314a15b85e9274dc433 diff --git a/.shellcheckrc b/.shellcheckrc index 422c8369..0fbcee57 100644 --- a/.shellcheckrc +++ b/.shellcheckrc @@ -5,7 +5,7 @@ # \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under Creative Commons Zero v1.0 Universal # /___/ Please report bugs and contribute back your improvements # -# Version: v4.0.0 +# Version: v4.1.0 ################################### # SC2250 = Prefer putting braces around variable references even when not strictly required. diff --git a/lib/tegonal-gh-commons/src/gt/pull-hook-functions.sh b/lib/tegonal-gh-commons/src/gt/pull-hook-functions.sh index 2c589954..92136a57 100644 --- a/lib/tegonal-gh-commons/src/gt/pull-hook-functions.sh +++ b/lib/tegonal-gh-commons/src/gt/pull-hook-functions.sh @@ -6,7 +6,7 @@ # \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under Creative Commons Zero v1.0 Universal # /___/ Please report bugs and contribute back your improvements # -# Version: v4.0.0 +# Version: v4.1.0 ####### Description ############# # # functions which can be used to update the placeholders in the templates in a gt pull-hook.sh diff --git a/lib/tegonal-gh-commons/src/gt/tegonal.data.source.sh b/lib/tegonal-gh-commons/src/gt/tegonal.data.source.sh index d604cbe1..abb2f960 100644 --- a/lib/tegonal-gh-commons/src/gt/tegonal.data.source.sh +++ b/lib/tegonal-gh-commons/src/gt/tegonal.data.source.sh @@ -7,7 +7,7 @@ # \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under European Union Public License 1.2 # /___/ Please report bugs and contribute back your improvements # -# Version: v4.0.0 +# Version: v4.1.0 ####### Description ############# # # constants intended to be sourced into a function.