-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jeff Hodges <jhodges@frame.io>
- Loading branch information
Showing
2 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
# | ||
# entry script to create a release branch in ci | ||
# generates a release branch named with a utc timestamp | ||
# | ||
echo 'CREATING A RELEASE BRANCH' | ||
|
||
# create a release branch locally and remotely | ||
# normalize utc date to YYYY-MM-DD-HH-MM | ||
NEW_BRANCH_NAME="release/$(date -u +%Y-%m-%d-%H-%M)" | ||
echo "NEW BRANCH: $NEW_BRANCH_NAME" | ||
git checkout -b $NEW_BRANCH_NAME | ||
git push origin $NEW_BRANCH_NAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters