Skip to content

Commit

Permalink
Merge pull request #15 from Poltio/hotfix/dont-allow-underscores-in-b…
Browse files Browse the repository at this point in the history
…ranch-names

Dont allow underscore in the app tag.
  • Loading branch information
gcg authored Jan 15, 2024
2 parents af64754 + ee18689 commit bafead7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ runs:
- name: Get url friendly branch name
shell: bash
run: |
url=$(sed -E 's#refs/[^\/]*/##;s/[^a-zA-Z0-9_]+/-/g;s/-+/-/g;s/^-*//;s/-*$//' <<<"${GITHUB_HEAD_REF}")
url=$(sed -E 's#refs/[^\/]*/##;s/[^a-zA-Z0-9]+/-/g;s/-+/-/g;s/^-*//;s/-*$//' <<<"${GITHUB_HEAD_REF}")
tolower=${url,,}
reduce=$(echo $tolower | cut -c -20)
echo "BRANCH_URL=$(echo ${reduce%-})" >> $GITHUB_ENV
Expand Down

0 comments on commit bafead7

Please sign in to comment.