From d53d76589d070effe668f211c132d79144baedee Mon Sep 17 00:00:00 2001 From: unl0ck Date: Wed, 22 Nov 2023 12:47:39 +0100 Subject: [PATCH] Update build.yaml --- .github/workflows/build.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 93be7f7..b16976b 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -21,7 +21,7 @@ jobs: changed: ${{ steps.changed_addons.outputs.changed }} steps: - name: Check out the repository - uses: actions/checkout@v3.0.2 + uses: actions/checkout@v4.1.1 - name: Get changed files id: changed_files @@ -51,8 +51,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 @@ -68,7 +68,7 @@ jobs: steps: - name: Check out repository - uses: actions/checkout@v3.0.2 + uses: actions/checkout@v4.1.1 - name: Get information id: info @@ -80,23 +80,23 @@ 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.0.0 + uses: docker/login-action@v3.0.0 with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} + password: ${{ secrets.TOKEN }} - name: Build ${{ matrix.addon }} add-on if: steps.check.outputs.build_arch == 'true' @@ -107,5 +107,5 @@ jobs: --${{ matrix.arch }} \ --target /data/${{ matrix.addon }} \ --image "${{ steps.check.outputs.image }}" \ - --docker-hub "ghcr.io/${{ github.repository }}" \ + --docker-hub "ghcr.io/${{ github.repository_owner }}" \ --addon