Skip to content

Commit

Permalink
chore: convert deployment branch name to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
schmanu committed Aug 25, 2023
1 parent d5fea42 commit 134026e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ jobs:
# Extract branch name
- name: Extract branch name
shell: bash
## Cut off "refs/heads/" and only allow alphanumeric characters,
## Cut off "refs/heads/", only allow alphanumeric characters and convert to lower case,
## e.g. "refs/heads/features/hello-1.2.0" -> "features_hello_1_2_0"
run: echo "branch=$(echo $GITHUB_HEAD_REF | sed 's/refs\/heads\///' | sed 's/[^a-z0-9]/_/ig')" >> $GITHUB_OUTPUT
run: echo "branch=$(echo $GITHUB_HEAD_REF | sed 's/refs\/heads\///' | sed 's/[^a-z0-9]/_/ig') | sed 's/[A-Z]/\L&/g'" >> $GITHUB_OUTPUT
id: extract_branch

# Deploy to S3
Expand Down

0 comments on commit 134026e

Please sign in to comment.