Skip to content

Commit 56955de

Browse files
committed
Fix support for commit titles with quotes
1 parent cbdcade commit 56955de

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
@@ -87,13 +87,14 @@ jobs:
8787
- name: Create PR for helm-charts repo
8888
env:
8989
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
90-
run: |
90+
PR_TITLE: ${{ github.event.pull_request.title }}
91+
run: |
9192
cd ./helm-charts-cloned
9293
9394
if [[ -n $(git status --porcelain) ]]; then
9495
jobname=${{ github.run_id }}
95-
if [[ -n "${{ github.event.pull_request.title }}" ]]; then
96-
jobname=$(echo "${{ github.event.pull_request.title }}" | tr -c '[:alnum:]-_' '_')
96+
if [[ -n "${PR_TITLE}" ]]; then
97+
jobname=$(echo "${PR_TITLE}" | tr -c '[:alnum:]-_' '_')
9798
fi
9899
99100
export BRANCH=ako-helm-update-"${jobname}"

0 commit comments

Comments
 (0)