File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -66,25 +66,25 @@ jobs:
6666 git push -u origin "$BRANCH"
6767
6868 gh auth setup-git
69- pr_number =$(gh pr list --head ci/update-swift-version --state open --json number --jq '.[0]')
69+ pr =$(gh pr list --head ci/update-swift-version --state open --json number --jq '.[0].number ')
7070
71- TITLE ="ci: update Swift version to $latest"
72- BODY ="This PR updates the \`.swift-version\` file to Swift $latest.
71+ title ="ci: update Swift version to $latest"
72+ body ="This PR updates the \`.swift-version\` file to Swift $latest.
7373
7474 > This PR was automatically generated."
7575
76- if [[ -z "$pr_number " ]]; then
76+ if [[ -z "$pr " ]]; then
7777 gh pr create \
78- --title "$TITLE " \
79- --body "$BODY " \
78+ --title "$title " \
79+ --body "$body " \
8080 --head "ci/update-swift-version" \
8181 --base "main"
8282 else
83- echo "PR already exists: #$pr_number "
84- gh pr edit $pr_number --title "$TITLE " --body "$BODY "
83+ echo "PR already exists: #$pr "
84+ gh pr edit "$pr" --title "$title " --body "$body "
8585 fi
8686
87- gh pr merge $pr_number --auto --squash
87+ gh pr merge "$pr" --auto --squash
8888
8989 env :
9090 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments