Skip to content

Commit

Permalink
ci: cherry pick changes to HAPI version checks into release 0.55 (#15771
Browse files Browse the repository at this point in the history
)

Signed-off-by: Roger Barker <[email protected]>
  • Loading branch information
rbarkerSL authored Oct 2, 2024
1 parent 3166f30 commit e0928cc
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/node-flow-deploy-release-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,6 @@ jobs:
echo "version=${FINAL_VERSION}" >>"${GITHUB_OUTPUT}"
echo "prerelease=${PRERELEASE_FLAG}" >>"${GITHUB_OUTPUT}"
- name: Checkout Code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Verify HAPI version
run: |
TAG_MAJOR="$(semver get major "${{ github.ref_name }}")"
TAG_MINOR="$(semver get minor "${{ github.ref_name }}")"
HAPI_VERSION=$(grep "val hapiProtoVersion = " settings.gradle.kts | sed -E 's/.+ = "(.+)"/\1/')
HAPI_MAJOR="$(semver get major ${HAPI_VERSION})"
HAPI_MINOR="$(semver get minor ${HAPI_VERSION})"
if [[ "${TAG_MAJOR}" != "${HAPI_MAJOR}" || "${TAG_MINOR}" != "${HAPI_MINOR}" ]]; then
echo "::error title=HAPI Version Mismatch::The tag version (${TAG_MAJOR}.${TAG_MINOR}) does not match the hapiProtoVersion (${HAPI_MAJOR}.${HAPI_MINOR}) specified in settings.gradle.kts"
exit 1
else
echo "The tag version (${TAG_MAJOR}.${TAG_MINOR}) matches the hapiProtoVersion (${HAPI_MAJOR}.${HAPI_MINOR}) specified in settings.gradle.kts"
fi
release-tag:
name: Release [Tag]
uses: ./.github/workflows/node-zxc-build-release-artifact.yaml
Expand Down

0 comments on commit e0928cc

Please sign in to comment.