From: Pablo Zmdl Date: Fri, 6 Dec 2024 14:28:25 +0000 (+0100) Subject: Use valid branch names X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=f69c7f140f386e5f980179053270feed060e99d0;p=roundcube-roundcubemail-docker.git Use valid branch names ISO8601 contains colons, which apparently are not allowed for git branch names. --- diff --git a/.github/workflows/update-sh.yml b/.github/workflows/update-sh.yml index a8c6ff3..17d7623 100644 --- a/.github/workflows/update-sh.yml +++ b/.github/workflows/update-sh.yml @@ -30,7 +30,7 @@ jobs: # Exit early if no changes are present. test $(git status --porcelain | wc -l) -gt 0 || { echo "No changes to commit, happily cancelling this script."; exit 0; } # Use a distinct branch-name (nano-seconds should be good enough). - BRANCH="changes-from-update.sh-$(date -I ns)" + BRANCH="changes-from-update.sh-$(date +'%Y-%m-%d_%H%M%S_%N')" git switch -C "$BRANCH" git config --local user.email "workflow@github.com" git config --local user.name "GitHub Workflow"