Fix source-mod detection calculation
@@ -155,6 +155,12 @@ jobs:
with:
python-version: ${{ env.DEFAULT_PYTHON }}
+ - name: Set version
+ if: needs.init.outputs.publish == 'true'
+ uses: home-assistant/actions/helpers/version@master
+ with:
+ type: ${{ env.BUILD_TYPE }}
+
- name: Install dirhash and calc hash
if: needs.init.outputs.publish == 'true'
id: dirhash
@@ -163,12 +169,6 @@ jobs:
dir_hash="$(dirhash "${{ github.workspace }}/supervisor" -a sha256 --match "*.py")"
echo "::set-output name=dirhash::${dir_hash}"
- - name: Set version
- if: needs.init.outputs.publish == 'true'
- uses: home-assistant/actions/helpers/version@master
- with:
- type: ${{ env.BUILD_TYPE }}
-
- name: Signing Source
if: needs.init.outputs.publish == 'true'
uses: home-assistant/actions/helpers/codenotary@master
@@ -305,6 +305,12 @@ jobs:
exit 1
fi
+ echo "Check supervisor supported"
+ test=$(docker exec hassio_cli ha resolution info --no-progress --raw-json | jq -r '.data.unsupported[]')
+ if [ "$test" =~ source_mods ];then
+ exit 1
+ fi
+
- name: Get supervisor logs on failiure
if: ${{ cancelled() || failure() }}
run: docker logs hassio_supervisor
