Update rts-build-selfhost.yml (#29125)

This commit is contained in:
Goutham Pratapa 2023-11-27 12:15:17 +05:30 committed by GitHub
parent 5d8e565e59
commit b2af42a293
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,11 +68,6 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install necessary packages
run: |
sudo apt-get update
sudo apt-get install -y gawk
- name: Figure out the PR number
run: echo ${{ inputs.pr }}
@ -127,7 +122,7 @@ jobs:
# `-SNAPSHOT` suffix.
latest_released_version="$(git tag --list 'v*' --sort=-version:refname | head -1)"
echo "latest_released_version = $latest_released_version"
next_version="$(echo "$latest_released_version" | gawk -F. -v OFS=. '{ $NF++; print }')"
next_version="$(echo "$latest_released_version" | gawk -F. -v OFS=. '{ $3++; print }')"
echo "next_version = $next_version"
echo version=$next_version-SNAPSHOT >> $GITHUB_OUTPUT
echo tag=$(echo ${GITHUB_REF:11}) >> $GITHUB_OUTPUT