Skip to content

Show workload action list in kiosk mode (#7752) #898

Show workload action list in kiosk mode (#7752)

Show workload action list in kiosk mode (#7752) #898

name: Version
on:
# Run on master and release branches
push:
branches: [master, "^v\\d+\\.\\d+$"]
paths:
- 'frontend/package.json'
- 'Makefile'
pull_request:
branches: [master, "^v\\d+\\.\\d+$"]
paths:
- 'frontend/package.json'
- 'Makefile'
jobs:
version:
name: Check version
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: calculate versions
id: version_info
run: |
CORE_VERSION=$(grep '^VERSION ?=' ./Makefile | sed -e "s/^VERSION\s?=\sv//" -e "s/-SNAPSHOT//")
PACKAGE_VERSION=$(grep '"version":' ./frontend/package.json | sed -e "s/\s*\"version\":\s\"//" -e "s/\",//")
echo "CORE_VERSION=$CORE_VERSION" >> $GITHUB_ENV
echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> $GITHUB_ENV
- name: verify version
if: ${{ steps.version_info.outputs.CORE_VERSION != steps.version_info.outputs.PACKAGE_VERSION }}
run: |
echo "Versions in Makefile ( ${{ env.CORE_VERSION }} ) and frontend/package.json ( ${{ env.PACKAGE_VERSION }} ) are not aligned"
exit 1