Skip to content

Commit

Permalink
remove branch switch as Github Actions need to do this
Browse files Browse the repository at this point in the history
  • Loading branch information
T0biii committed Jun 30, 2024
1 parent 92812d2 commit 2435aca
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions contrib/actions/update-modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 17 in contrib/actions/update-modules.sh

View workflow job for this annotation

GitHub Actions / runner / shellcheck

[shellcheck] reported by reviewdog 🐶 This loop will only ever run once. Bad quoting or missing glob/expansion? Raw Output: ./contrib/actions/update-modules.sh:17:15: warning: This loop will only ever run once. Bad quoting or missing glob/expansion? (ShellCheck.SC2043)

Check warning on line 17 in contrib/actions/update-modules.sh

View workflow job for this annotation

GitHub Actions / runner / shellcheck

[shellcheck] reported by reviewdog 🐶 This loop will only ever run once. Bad quoting or missing glob/expansion? Raw Output: ./contrib/actions/update-modules.sh:17:15: warning: This loop will only ever run once. Bad quoting or missing glob/expansion? (ShellCheck.SC2043)
_REMOTE_URL=${MODULE}_REPO
Expand All @@ -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)

Expand Down

0 comments on commit 2435aca

Please sign in to comment.