File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 99
1010jobs :
1111 update-swift-version :
12+ name : Create or update PR
1213 runs-on : ubuntu-latest
1314
1415 permissions :
5556 latest=$(swiftly list-available main-snapshot | grep main-snapshot | head -n 1 | awk '{print $1}')
5657 echo -n "$latest" > .swift-version
5758 echo "version=$latest" >> "$GITHUB_OUTPUT"
58- if [[ -z "$(git status --porcelain .swift-version)" ]]; then
59- echo "No changes. Exiting."
60- exit 0 # neutral exit status
61- fi
6259
6360 git add .swift-version
6461 git commit -m "Update Swift version to $latest"
6865 pr=$(gh pr list --head ci/update-swift-version --state open --json number --jq '.[0].number')
6966
7067 title="ci: update Swift version to $latest"
71- body="This PR updates the \`.swift-version\` file to Swift $latest.
68+ body="Updates the \`.swift-version\` file to Swift ` $latest` .
7269
7370 > This PR was automatically generated."
7471
8380 gh pr edit --title "$title" --body "$body"
8481 fi
8582
86- gh pr merge --auto --squash
83+ gh pr merge --auto --squash --subject "$title" --body "$body"
8784
8885 env :
89- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
86+ GH_TOKEN : ${{ github.token }}
You can’t perform that action at this time.
0 commit comments