-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: weizhoublue <[email protected]>
- Loading branch information
1 parent
96aaf4a
commit ea66fcb
Showing
3 changed files
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,10 +27,12 @@ jobs: | |
exit 0 | ||
} | ||
echo "${latest_version}" > GO_VERSION | ||
make update_go_version | ||
cat GO_VERSION | ||
make update_go_version -e GO_VERSION=${latest_version} | ||
if ! test -z "$$(git status --porcelain)"; then | ||
echo "update golang" | ||
echo "RUN_UPDATE=true" >> $GITHUB_ENV | ||
echo "GO_VERSION=${latest_version}" >> $GITHUB_ENV | ||
else | ||
echo "no need to update golang version" | ||
echo "RUN_UPDATE=false" >> $GITHUB_ENV | ||
|
@@ -42,7 +44,7 @@ jobs: | |
if: ${{ env.RUN_UPDATE == 'true' }} | ||
uses: peter-evans/[email protected] | ||
with: | ||
title: "robot Update project owing to updated Golang Version " | ||
title: "robot updates Golang Version to ${{ env.GO_VERSION }}" | ||
commit-message: "robot Update project owing to updated Golang Version " | ||
branch-suffix: timestamp | ||
branch: robot/update_golang | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters