From 3593f70d0dc159ecf86de75d03674786481b93cc Mon Sep 17 00:00:00 2001 From: Lucio Tarantino Date: Sat, 21 Dec 2024 18:38:41 +0100 Subject: [PATCH 1/2] Update build.yml --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a38fb4d..9393dd6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,15 +27,15 @@ jobs: - name: Extract branch name shell: bash - run: echo "BR_VERSION=${GITHUB_REF##*/}" >> "$GITHUB_OUTPUT" + run: echo "BR_PROJECT=$(TMP=${{github.event.pull_request.title}};echo ${TMP##*/})" >> "$GITHUB_OUTPUT" id: extract_branch - - name: Publish ${{ steps.extract_branch.outputs.BR_VERSION }} Addon + - name: Publish ${{ steps.extract_branch.outputs.BR_PROJECT }} Addon uses: home-assistant/builder@master env: CAS_API_KEY: ${{ secrets.CAS_API_KEY }} with: args: | --all \ - --target ${{ steps.extract_branch.outputs.BR_VERSION }} \ + --target ${{ steps.extract_branch.outputs.BR_PROJECT }} \ --docker-hub dianlight From eacb8fc93915dab5c401646c218fdb6a5997ab5f Mon Sep 17 00:00:00 2001 From: Lucio Tarantino Date: Sat, 21 Dec 2024 18:45:13 +0100 Subject: [PATCH 2/2] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9393dd6..2038f9a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,7 +27,7 @@ jobs: - name: Extract branch name shell: bash - run: echo "BR_PROJECT=$(TMP=${{github.event.pull_request.title}};echo ${TMP##*/})" >> "$GITHUB_OUTPUT" + run: echo "BR_PROJECT=$(TMP=${{github.ref_name}};echo ${TMP##*/})" >> "$GITHUB_OUTPUT" id: extract_branch - name: Publish ${{ steps.extract_branch.outputs.BR_PROJECT }} Addon