Skip to content

Commit

Permalink
ci: fix version acquisition error
Browse files Browse the repository at this point in the history
  • Loading branch information
sbwml authored Nov 30, 2023
1 parent 3a2bab0 commit 0bb223f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ jobs:
# the original commit does not seem to be readable inside the container, so use github api.
TAGS=$(curl -sk https://api.github.com/repos/sbwml/node-latest-centos/tags | grep "name")
if [[ ${{ matrix.tag }} == "lts" ]]; then
LATEST_VERSION=$(curl -sk https://nodejs.org/en | sed -n 's/.*title="Download \(.*\) LTS".*/\1/p')
LATEST_VERSION=$(curl -sk https://nodejs.org/en | sed -n 's/.*title="\([^"]*\) LTS".*/\1/p')
echo "PRE_RELEASE=false" >> "$GITHUB_ENV"
else
LATEST_VERSION=$(curl -sk https://nodejs.org/en | sed -n 's/.*title="Download \(.*\) Current".*/\1/p')
LATEST_VERSION=$(curl -sk https://nodejs.org/en | sed -n 's/.*title="\([^"]*\) Current".*/\1/p')
echo "PRE_RELEASE=true" >> "$GITHUB_ENV"
fi
if [[ "$TAGS" == *"$LATEST_VERSION"* ]]; then
Expand Down

0 comments on commit 0bb223f

Please sign in to comment.