Skip to content

Commit 14ffb94

Browse files
committed
fix(ci): update workflow syntax
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
1 parent 37c2cb7 commit 14ffb94

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/update-workflow.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ jobs:
6969
git diff --cached --quiet || git commit -sm "chore: update ${{ inputs.file_path }} from master branch"
7070
7171
# Create a new branch for the PR
72-
pr_branch="workflow/update-${{ inputs.file_path |replace('/', '-') }}-${{ matrix.target_branch }}"
72+
file_path_safe=$(echo "${{ inputs.file_path }}" | sed 's|/|-|g')
73+
pr_branch="workflow/update-${file_path_safe}-${{ matrix.target_branch }}"
7374
git checkout -b "$pr_branch"
7475
git push origin "$pr_branch"
7576

0 commit comments

Comments
 (0)