Skip to content

Commit c4586bb

Browse files
fix: quote branch names in e2e action pull request workflow
1 parent 3da6b52 commit c4586bb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/e2e-action-pull-request.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,11 +416,11 @@ jobs:
416416
run: |
417417
git config user.name "github-actions[bot]"
418418
git config user.email "github-actions[bot]@users.noreply.github.com"
419-
git checkout -b test/e2e-pr-labels-${TEST_ID}
419+
git checkout -b "test/e2e-pr-labels-${TEST_ID}"
420420
echo "E2E PR label creation test $(date -u)" > e2e-pr-label-test.txt
421421
git add -f e2e-pr-label-test.txt
422422
git commit -m "test(pull-request): label creation PR test"
423-
git push origin test/e2e-pr-labels-${TEST_ID}
423+
git push origin "test/e2e-pr-labels-${TEST_ID}"
424424
425425
- name: Checkout action under test
426426
if: ${{ inputs.mode == 'ref' }}
@@ -520,7 +520,7 @@ jobs:
520520
fi
521521
ENCODED_LABEL="$(python3 -c 'import sys, urllib.parse; print(urllib.parse.quote(sys.argv[1], safe=""))' "${TEST_LABEL}")"
522522
gh api --method DELETE "repos/${{ github.repository }}/labels/${ENCODED_LABEL}" 2>/dev/null || true
523-
git push origin --delete test/e2e-pr-labels-${TEST_ID} 2>/dev/null || true
523+
git push origin --delete "test/e2e-pr-labels-${TEST_ID}" 2>/dev/null || true
524524
525525
pull-request-with-repository-path:
526526
name: Pull request using custom checkout path and explicit repository

0 commit comments

Comments
 (0)