From 2435aca5d211afce7d4a0eb34c69b42ca3911ff6 Mon Sep 17 00:00:00 2001 From: Tobias Date: Sun, 30 Jun 2024 23:50:22 +0000 Subject: [PATCH] remove branch switch as Github Actions need to do this --- contrib/actions/update-modules.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/contrib/actions/update-modules.sh b/contrib/actions/update-modules.sh index d7d00df3..8842f7c1 100755 --- a/contrib/actions/update-modules.sh +++ b/contrib/actions/update-modules.sh @@ -13,8 +13,6 @@ git diff --quiet ./modules || { exit 1 } -LOCAL_BRANCH=$(git branch --show-current) -[[ $LOCAL_BRANCH != update-modules-* ]] && LOCAL_BRANCH="update-modules-$LOCAL_BRANCH-$(date +%s)" for MODULE in "PACKAGES_COMMUNITY"; do _REMOTE_URL=${MODULE}_REPO @@ -36,10 +34,7 @@ for MODULE in "PACKAGES_COMMUNITY"; do # skip ahead if the commit id did not change [ "$LOCAL_HEAD" == "$REMOTE_HEAD" ] && continue 1 - # switch to local working branch, if we found changes - [ "$(git branch --show-current)" != "${LOCAL_BRANCH}" ] && { - git switch -c "${LOCAL_BRANCH}" || git switch "${LOCAL_BRANCH}" - } + CHECKOUT=$(mktemp -d)