From a81e00efcb4f436b9d9c6fdd0043dcfbd31e12ab Mon Sep 17 00:00:00 2001 From: tube0013 Date: Mon, 8 Jan 2024 21:24:33 -0500 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0a7cdf3..078fe74 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,12 +22,11 @@ jobs: changed: ${{ steps.changed_addons.outputs.changed }} steps: - name: Check out the repository - uses: actions/checkout@v3 + uses: actions/checkout@v4.1.1 - name: Get changed files id: changed_files uses: jitterbit/get-changed-files@v1 - continue-on-error: true - name: Find add-on directories id: addons @@ -53,8 +52,8 @@ jobs: if [[ -n ${changed} ]]; then echo "Changed add-ons: $changed"; - echo "::set-output name=changed::true"; - echo "::set-output name=addons::[$changed]"; + echo "changed=true" >> $GITHUB_OUTPUT; + echo "addons=[$changed]" >> $GITHUB_OUTPUT; else echo "No add-on had any monitored files changed (${{ env.MONITORED_FILES }})"; fi @@ -70,7 +69,7 @@ jobs: steps: - name: Check out repository - uses: actions/checkout@v3 + uses: actions/checkout@v4.1.1 - name: Get information id: info @@ -82,19 +81,19 @@ jobs: id: check run: | if [[ "${{ steps.info.outputs.architectures }}" =~ ${{ matrix.arch }} ]]; then - echo "::set-output name=build_arch::true"; - echo "::set-output name=image::$(echo ${{ steps.info.outputs.image }} | cut -d'/' -f3)"; + echo "build_arch=true" >> $GITHUB_OUTPUT; + echo "image=$(echo ${{ steps.info.outputs.image }} | cut -d'/' -f3)" >> $GITHUB_OUTPUT; if [[ -z "${{ github.head_ref }}" ]] && [[ "${{ github.event_name }}" == "push" ]]; then echo "BUILD_ARGS=" >> $GITHUB_ENV; fi else echo "${{ matrix.arch }} is not a valid arch for ${{ matrix.addon }}, skipping build"; - echo "::set-output name=build_arch::false"; + echo "build_arch=false" >> $GITHUB_OUTPUT; fi - name: Login to GitHub Container Registry if: env.BUILD_ARGS != '--test' - uses: docker/login-action@v2.1.0 + uses: docker/login-action@v3.0.0 with: registry: ghcr.io username: ${{ github.repository_owner }} @@ -102,7 +101,7 @@ jobs: - name: Build ${{ matrix.addon }} add-on if: steps.check.outputs.build_arch == 'true' - uses: home-assistant/builder@2023.03.0 + uses: home-assistant/builder@2023.12.0 with: args: | ${{ env.BUILD_ARGS }} \