We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37c2cb7 commit 14ffb94Copy full SHA for 14ffb94
1 file changed
.github/workflows/update-workflow.yml
@@ -69,7 +69,8 @@ jobs:
69
git diff --cached --quiet || git commit -sm "chore: update ${{ inputs.file_path }} from master branch"
70
71
# Create a new branch for the PR
72
- pr_branch="workflow/update-${{ inputs.file_path |replace('/', '-') }}-${{ matrix.target_branch }}"
+ file_path_safe=$(echo "${{ inputs.file_path }}" | sed 's|/|-|g')
73
+ pr_branch="workflow/update-${file_path_safe}-${{ matrix.target_branch }}"
74
git checkout -b "$pr_branch"
75
git push origin "$pr_branch"
76
0 commit comments