Skip to content

Commit

Permalink
Modify the file path in the build workflow to ensure the correct read…
Browse files Browse the repository at this point in the history
…ing and writing of Node.js version information
  • Loading branch information
danbao committed Nov 14, 2024
1 parent 288686f commit 68adead
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ jobs:
JDK_DIR=jdk${{ matrix.jdk_version }}
if [[ -f ${JDK_DIR}/Dockerfile ]]; then
BASE_VERSION="$(awk -F '[:-]' '/ringcentral\/maven/ {print $3}' ${JDK_DIR}/Dockerfile)"
echo "${NODE_VERSION}" > ${JDK_DIR}-${NODE_VERSION}/node_version.txt
echo "${NODE_MAJOR_VERSION}" > ${JDK_DIR}-${NODE_VERSION}/node_major_version.txt
echo "${BASE_VERSION}" > ${JDK_DIR}-${NODE_VERSION}/base_version.txt
echo "${NODE_VERSION}" > ${JDK_DIR}/${NODE_VERSION}-node_version.txt
echo "${NODE_MAJOR_VERSION}" > ${JDK_DIR}/${NODE_VERSION}-node_major_version.txt
echo "${BASE_VERSION}" > ${JDK_DIR}/${NODE_VERSION}-base_version.txt
else
NODE_VERSION=$(cat ${JDK_DIR}-${NODE_VERSION}/node_version.txt)
NODE_MAJOR_VERSION=$(cat ${JDK_DIR}-${NODE_VERSION}/node_major_version.txt)
BASE_VERSION=$(cat ${JDK_DIR}-${NODE_VERSION}/base_version.txt)
NODE_VERSION=$(cat ${JDK_DIR}/${NODE_VERSION}-node_version.txt)
NODE_MAJOR_VERSION=$(cat ${JDK_DIR}/${NODE_VERSION}-node_major_version.txt)
BASE_VERSION=$(cat ${JDK_DIR}/${NODE_VERSION}-base_version.txt)
fi
echo "JDK_DIR=${JDK_DIR}" >> $GITHUB_ENV
echo "NODE_VERSION=${NODE_VERSION}" >> $GITHUB_ENV
Expand Down

0 comments on commit 68adead

Please sign in to comment.