Skip to content

Commit

Permalink
Update release-preview workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Hodges <jhodges@frame.io>
  • Loading branch information
jhodges10 committed Jun 24, 2024
1 parent 8ea805f commit e199f78
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .github/scripts/release-branch.sh
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
4 changes: 2 additions & 2 deletions .github/workflows/release-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Create Branch
shell: bash
run: |
sh scripts/release-branch/rb.sh
sh ./github/scripts/release-branch.sh
- name: Get New Branch Name
id: get-branch-name
Expand All @@ -57,7 +57,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Convert markdown to slack markdown for issue
- name: Convert Github markdown to Slack markdown syntax
# https://github.com/LoveToKnow/slackify-markdown-action
uses: LoveToKnow/slackify-markdown-action@v1.0.0
if: ${{ github.event.inputs.notify == 'true' }}
Expand Down

0 comments on commit e199f78

Please sign in to comment.