Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under Creative Commons Zero v1.0 Universal
# /___/ Please report bugs and contribute back your improvements
#
# Version: v3.1.0
# Version: v4.2.0
###################################

# https://editorconfig.org
Expand Down
2 changes: 1 addition & 1 deletion .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under Creative Commons Zero v1.0 Universal
# /___/ Please report bugs and contribute back your improvements
#
# Version: v3.1.0
# Version: v4.2.0
###################################
-->
# Contributor Covenant Code of Conduct
Expand Down
37 changes: 35 additions & 2 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,54 @@
# \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under Creative Commons Zero v1.0 Universal
# /___/ Please report bugs and contribute back your improvements
#
# Version: v3.1.0
# Version: v4.2.0
###################################
name: Cleanup

#gt-placeholder-trigger-start
on:
push:
branches:
- main
#gt-placeholder-trigger-end

#gt-placeholder-permissions-start
permissions:
contents: read
#gt-placeholder-permissions-end

jobs:
build:
#gt-placeholder-runs-on-start
runs-on: ubuntu-latest
#gt-placeholder-runs-on-end
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

#gt-placeholder-install-dependencies-start
#gt-placeholder-install-dependencies-end

- name: Cleanup Sources
run: ./scripts/cleanup-on-push-to-main.sh

- name: Check if actor is collaborator
id: check-collaborator
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:
Expand All @@ -31,3 +63,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-collaborator.outputs.reviewer }}
20 changes: 10 additions & 10 deletions .gt/remotes/tegonal-gh-commons/pulled.tsv
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#@ Version: 1.1.0
tag file relativeTarget tagFilter sha512
v3.1.0 src/.github/CODE_OF_CONDUCT.md ../.github/CODE_OF_CONDUCT.md .* fab8a286b8a62ce9e2567b6f224bc0236db0e827996f5175c541fe137dfbd4b5659085c59b50a259d0daa8f9c3a12fe6f5568b61fc44a51f224c5710779dc332
v3.1.0 src/.github/PULL_REQUEST_TEMPLATE.md ../.github/PULL_REQUEST_TEMPLATE.md .* 9112d1ea1f72ea250cdfe686fc152e63f2e0cdcea9c46935289471d7a3f54c35af8a3f283570f5d863e936c7782939c7b1548cb7d4ccda712bbf9314926f58cb
v3.1.0 src/.github/Contributor Agreement.txt ../.github/Contributor Agreement.txt .* 0b9a8a954edf302ca5fe0062b7e283d3da06a6bc0631a812663095a78b3a734cefb43b725ae342694d770be75206124c42a1150e168fac33f28aebea0bda35ec
v3.1.0 src/.github/workflows/cleanup.yml ../.github/workflows/cleanup.yml .* dede0d9d3b5ca662578cb9ccb004c10504da50bca2fb8785618ebfd129a8850625f5dcd265c326a201e760180fb8d20ce71812cc7fcbbc415555c10e69870f66
v3.1.0 src/dotfiles/.editorconfig ../.editorconfig .* 7e25835577cdc5bb812b04ef8bcfc3937129bb1078c90772884ef24433797ce22f7d429f129dc93e8983fcf4cb4b2fd81f4fb917322c8942c0b8bc76cd3781fa
v3.1.0 src/dotfiles/.shellcheckrc ../.shellcheckrc .* 06b373f5f2610677ea71a015c0a1057936d3c8339d535eb4bad6daedc9294b14325ea34f3e36f5f9ca947807823356ea41a749764692f34ccfe34a4c46d662fb
v3.1.0 src/gt/pull-hook-functions.sh ../lib/tegonal-gh-commons/src/gt/pull-hook-functions.sh .* 91c008ad7dc031aef14c20e44040039fe3c43c1d211149458b724216185e7c216a53e5c133aee949517d8097568e27e7236631045d152cb1cb3fbc7f3f1da1fa
v3.1.0 src/gt/tegonal.data.source.sh ../lib/tegonal-gh-commons/src/gt/tegonal.data.source.sh .* 3fd2975d13a55491079ce2d706454943d22ae0f10f041851ef4f4bca1914754fcbf5aa5e2d469c4dcb3769b903a7853d43f5c25230cf64731a22429bfd968346
#@ Version: 1.2.0
tag file relativeTarget tagFilter hasPlaceholder sha512
v4.2.0 src/.github/CODE_OF_CONDUCT.md ../.github/CODE_OF_CONDUCT.md .* false 2ab05247219f9816a3be4d76144c647500f2d6044ce917615a726fbd7adcb4f4625772e4ece5bdeca7da9af4ae7d1b03ed96bde2a2a8134afeb1964f0fce3f00
v4.2.0 src/.github/PULL_REQUEST_TEMPLATE.md ../.github/PULL_REQUEST_TEMPLATE.md .* false 9112d1ea1f72ea250cdfe686fc152e63f2e0cdcea9c46935289471d7a3f54c35af8a3f283570f5d863e936c7782939c7b1548cb7d4ccda712bbf9314926f58cb
v4.2.0 src/.github/Contributor Agreement.txt ../.github/Contributor Agreement.txt .* false 0b9a8a954edf302ca5fe0062b7e283d3da06a6bc0631a812663095a78b3a734cefb43b725ae342694d770be75206124c42a1150e168fac33f28aebea0bda35ec
v4.2.0 src/.github/workflows/cleanup.yml ../.github/workflows/cleanup.yml .* true c01d45a29ce50be8851b6c372eda4b50bff77df8f7189c189bc2231ead89dd564eab211fa3bb6d7afbbfbec499fb7b514b30bb6efe4437a97e041836421cac14
v4.2.0 src/dotfiles/.editorconfig ../.editorconfig .* false de9f9dcd6ff43b0bf183ddb26cc9fae820eecc9ffbee1797e213e0216c42d73606a231613a7872486bb95413ca417255374b388b0e5118f3730e4689ba3d1502
v4.2.0 src/dotfiles/.shellcheckrc ../.shellcheckrc .* false 70028305482349a30b61d8b8be828ae0a94b2647f13fc54bf339fa8cc37d6406ba551d4f657596c2820bd0ded81f7440ae1759214857a463fa9c71a897be3dfa
v4.2.0 src/gt/pull-hook-functions.sh ../lib/tegonal-gh-commons/src/gt/pull-hook-functions.sh .* false e89726c87fead32d990867ceece823e0cbab8fc8a73236b45efb2a7b48472569f1ced18c4829135b2fa14f4197a940eaa6e3ece47e6f4b1f40c0ea29f913fed8
v4.2.0 src/gt/tegonal.data.source.sh ../lib/tegonal-gh-commons/src/gt/tegonal.data.source.sh .* false f324a7f032432f3a465dcd7bb2f27fe1f208c0fedaa9269896a11d16fa1481064a62b9c752416c5fb9e6d0a45e39676e5e7d5398a0b0efb8678a354f2de832d1
2 changes: 1 addition & 1 deletion .shellcheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under Creative Commons Zero v1.0 Universal
# /___/ Please report bugs and contribute back your improvements
#
# Version: v3.1.0
# Version: v4.2.0
###################################

# SC2250 = Prefer putting braces around variable references even when not strictly required.
Expand Down
2 changes: 1 addition & 1 deletion lib/tegonal-gh-commons/src/gt/pull-hook-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under Creative Commons Zero v1.0 Universal
# /___/ Please report bugs and contribute back your improvements
#
# Version: v3.1.0
# Version: v4.2.0
####### Description #############
#
# functions which can be used to update the placeholders in the templates in a gt pull-hook.sh
Expand Down
2 changes: 1 addition & 1 deletion lib/tegonal-gh-commons/src/gt/tegonal.data.source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under European Union Public License 1.2
# /___/ Please report bugs and contribute back your improvements
#
# Version: v3.1.0
# Version: v4.2.0
####### Description #############
#
# constants intended to be sourced into a function.
Expand Down