mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-11 18:11:29 +02:00
Lint
This commit is contained in:
6
.github/workflows/onpush_builder.yaml
vendored
6
.github/workflows/onpush_builder.yaml
vendored
@@ -72,14 +72,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
# shellcheck disable=SC2157,SC2086
|
# shellcheck disable=SC2157,SC2086
|
||||||
if [[ "${{ steps.info.outputs.architectures }}" =~ ${{ matrix.arch }} ]]; then
|
if [[ "${{ steps.info.outputs.architectures }}" =~ ${{ matrix.arch }} ]]; then
|
||||||
echo "::set-output name=build_arch::true";
|
echo "build_arch=true";
|
||||||
echo "::set-output name=image::$(echo ${{ steps.info.outputs.image }} | cut -d'/' -f3)";
|
echo "image=$(echo ${{ steps.info.outputs.image }} | cut -d'/' -f3)";
|
||||||
if [[ -z "$HEAD" ]] && [[ "${{ github.event_name }}" == "push" ]]; then
|
if [[ -z "$HEAD" ]] && [[ "${{ github.event_name }}" == "push" ]]; then
|
||||||
echo "BUILD_ARGS=" >> $GITHUB_ENV;
|
echo "BUILD_ARGS=" >> $GITHUB_ENV;
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "${{ matrix.arch }} is not a valid arch for ${{ matrix.addon }}, skipping build";
|
echo "${{ matrix.arch }} is not a valid arch for ${{ matrix.addon }}, skipping build";
|
||||||
echo "::set-output name=build_arch::false";
|
echo "build_arch=false";
|
||||||
fi
|
fi
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
if: env.BUILD_ARGS != '--test'
|
if: env.BUILD_ARGS != '--test'
|
||||||
|
|||||||
Reference in New Issue
Block a user