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:
66
66
git push -u origin "$BRANCH"
67
67
68
68
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 ')
70
70
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.
73
73
74
74
> This PR was automatically generated."
75
75
76
- if [[ -z "$pr_number " ]]; then
76
+ if [[ -z "$pr " ]]; then
77
77
gh pr create \
78
- --title "$TITLE " \
79
- --body "$BODY " \
78
+ --title "$title " \
79
+ --body "$body " \
80
80
--head "ci/update-swift-version" \
81
81
--base "main"
82
82
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 "
85
85
fi
86
86
87
- gh pr merge $pr_number --auto --squash
87
+ gh pr merge "$pr" --auto --squash
88
88
89
89
env :
90
90
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments