mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 21:04:05 +02:00
Update builder.yaml
This commit is contained in:
4
.github/workflows/builder.yaml
vendored
4
.github/workflows/builder.yaml
vendored
@@ -48,13 +48,15 @@ jobs:
|
|||||||
|
|
||||||
- name: Check if add-on should be built
|
- name: Check if add-on should be built
|
||||||
id: check
|
id: check
|
||||||
|
env:
|
||||||
|
HEAD: "${{ github.head_ref }}"
|
||||||
run: |
|
run: |
|
||||||
# yamllint disable rule:line-length
|
# yamllint disable rule:line-length
|
||||||
# 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 "::set-output name=build_arch::true";
|
||||||
echo "::set-output name=image::$(echo ${{ steps.info.outputs.image }} | cut -d'/' -f3)";
|
echo "::set-output name=image::$(echo ${{ steps.info.outputs.image }} | cut -d'/' -f3)";
|
||||||
if [[ -z "${{ github.head_ref }}" ]] && [[ "${{ 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
|
||||||
|
|||||||
Reference in New Issue
Block a user