Fixed broken start engine call #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Verify Version Match | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'custom_components/lynkco/manifest.json' | |
jobs: | |
verify-version-match: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Extract version from manifest.json | |
id: manifest-version | |
run: | | |
VERSION=$(jq -r '.version' custom_components/lynkco/manifest.json) | |
echo "::set-output name=version::$VERSION" | |
- name: Extract first line from changelog | |
id: changelog-version | |
run: | | |
FIRST_LINE=$(head -n 1 CHANGELOG) | |
echo "::set-output name=first_line::$FIRST_LINE" | |
- name: Compare versions | |
run: | | |
if [ "${{ steps.manifest-version.outputs.version }}" != "${{ steps.changelog-version.outputs.first_line }}" ]; then | |
echo "Error: Version mismatch detected. manifest.json version: ${{ steps.manifest-version.outputs.version }}, CHANGELOG version: ${{ steps.changelog-version.outputs.first_line }}" | |
exit 1 | |
fi |