Use valid branch names
authorPablo Zmdl <redacted>
Fri, 6 Dec 2024 14:28:25 +0000 (15:28 +0100)
committerPablo Zmdl <redacted>
Fri, 6 Dec 2024 14:48:10 +0000 (15:48 +0100)
ISO8601 contains colons, which apparently are not allowed for git branch
names.

.github/workflows/update-sh.yml

index a8c6ff3e9f1019ff55448e64973a5e96c91560a4..17d762394b8216e5c3d7a853a19f1642dfc40dff 100644 (file)
@@ -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"
git clone https://git.99rst.org/PROJECT