Skip to content

Commit

Permalink
Merge pull request #299 from roundcube/update.sh-fix-branch-creation
Browse files Browse the repository at this point in the history
  • Loading branch information
pabzm authored Dec 6, 2024
2 parents 6f2a428 + 903294c commit 9dbb0ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update-sh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ 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 "[email protected]"
git config --local user.name "GitHub Workflow"
git add -A
git commit -m "Update roundcube version (via update.sh)"
git push --set-upstream origin "$BRANCH"
gh pr create -B master -H changes-from-update.sh --title 'Changes from update.sh' --body "These are the changes of the automated run of ./update.sh" --assignee pabzm
gh pr create -B master -H "$BRANCH" --title 'Changes from update.sh' --body "These are the changes of the automated run of ./update.sh" --assignee pabzm

0 comments on commit 9dbb0ef

Please sign in to comment.