Skip to content

Commit 1f43796

Browse files
committed
Fix support for commit titles with quotes
1 parent 7471a20 commit 1f43796

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/sync-helm-charts.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,14 @@ jobs:
8686
- name: Create PR for helm-charts repo
8787
env:
8888
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
89-
run: |
89+
PR_TITLE: ${{ github.event.pull_request.title }}
90+
run: |
9091
cd ./helm-charts-cloned
9192
9293
if [[ -n $(git status --porcelain) ]]; then
9394
jobname=${{ github.run_id }}
94-
if [[ -n "${{ github.event.pull_request.title }}" ]]; then
95-
jobname=$(echo "${{ github.event.pull_request.title }}" | tr -c '[:alnum:]-_' '_')
95+
if [[ -n "${PR_TITLE}" ]]; then
96+
jobname=$(echo "${PR_TITLE}" | tr -c '[:alnum:]-_' '_')
9697
fi
9798
9899
export BRANCH=ako-helm-update-"${jobname}"

0 commit comments

Comments
 (0)