File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ TARGET_REPOSITORY=$(jq -r ".pull_request.base.repo.full_name" "$GITHUB_EVENT_PAT
15
15
TARGET_BRANCH=$( jq -r " .pull_request.base.ref" " $GITHUB_EVENT_PATH " )
16
16
REPO_FULL_NAME=$( jq -r " .repository.full_name" " $GITHUB_EVENT_PATH " )
17
17
PR_NUMBER=$( jq -r " .pull_request.number" " $GITHUB_EVENT_PATH " )
18
- REBASE_PR_LABEL=$( jq -r " .label.name" " $GITHUB_EVENT_PATH " )
18
+ REBASE_PR_LABEL=$( jq -r " .label.name | @uri " " $GITHUB_EVENT_PATH " )
19
19
20
20
# Change to the github workspace and initialize the repo if needed.
21
21
cd " $GITHUB_WORKSPACE "
@@ -46,6 +46,6 @@ git push --force-with-lease pr "$PR_BRANCH"
46
46
# Remove the label that was used to trigger the action via the Github API.
47
47
curl --request DELETE \
48
48
-H " Authorization: token $TOKEN " \
49
- " $( echo https://api.github.com/repos/$REPO_FULL_NAME /issues/$PR_NUMBER /labels/$REBASE_PR_LABEL | sed ' s/ /%20/g ' ) "
49
+ https://api.github.com/repos/$REPO_FULL_NAME /issues/$PR_NUMBER /labels/$REBASE_PR_LABEL
50
50
51
51
exit $SUCCESS_EXIT_CODE
You can’t perform that action at this time.
0 commit comments