Skip to content

Commit

Permalink
Improve style
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Sep 13, 2024
1 parent e7800f5 commit e09209e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ jobs:
if: github.ref_type == 'branch'
run: |
version=$(grep -o '^const PkgVersion = ".*"' "arrow/doc.go" |
sed -e 's/^const PkgVersion = "//' \
sed \
-e 's/^const PkgVersion = "//' \
-e 's/"$//')
rc=100
echo "VERSION=${version}" >> ${GITHUB_ENV}
Expand Down
3 changes: 2 additions & 1 deletion dev/release/release_rc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ if [ "${RELEASE_PULL}" -gt 0 ]; then
fi

version=$(grep -o '^const PkgVersion = ".*"' "arrow/doc.go" |
sed -e 's/^const PkgVersion = "//' \
sed \
-e 's/^const PkgVersion = "//' \
-e 's/"$//')

rc_tag="v${version}-rc${rc}"
Expand Down
3 changes: 2 additions & 1 deletion dev/release/verify_rc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ latest_go_version() {
https://api.github.com/repos/golang/go/git/matching-refs/tags/go |
grep -o '"ref": "refs/tags/go.*"' |
tail -n 1 |
sed -e 's,^"ref": "refs/tags/go,,g' \
sed \
-e 's,^"ref": "refs/tags/go,,g' \
-e 's/"$//g'
}

Expand Down

0 comments on commit e09209e

Please sign in to comment.