mirror of
https://github.com/trycua/computer.git
synced 2026-01-04 04:19:57 -06:00
ci: added ci step to validate pylume version
This commit is contained in:
15
.github/workflows/publish-pylume.yml
vendored
15
.github/workflows/publish-pylume.yml
vendored
@@ -54,6 +54,21 @@ jobs:
|
||||
echo "VERSION=$VERSION"
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
|
||||
validate-version:
|
||||
runs-on: macos-latest
|
||||
needs: determine-version
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Validate version
|
||||
id: validate-version
|
||||
run: |
|
||||
CODE_VERSION=$(grep '__version__' libs/pylume/pylume/__init__.py | cut -d'"' -f2)
|
||||
if [ "${{ needs.determine-version.outputs.version }}" != "$CODE_VERSION" ]; then
|
||||
echo "Version mismatch: expected $CODE_VERSION, got ${{ needs.determine-version.outputs.version }}"
|
||||
exit 1
|
||||
fi
|
||||
echo "Version validated: $CODE_VERSION"
|
||||
|
||||
publish:
|
||||
needs: determine-version
|
||||
uses: ./.github/workflows/reusable-publish.yml
|
||||
|
||||
Reference in New Issue
Block a user