From d2b3ec77f285953c1e6b1bddb31b956893a887e5 Mon Sep 17 00:00:00 2001 From: Marius Andra Date: Tue, 31 Dec 2024 02:21:38 +0100 Subject: [PATCH] gihtub action debug --- .github/workflows/docker-publish-multi.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-publish-multi.yml b/.github/workflows/docker-publish-multi.yml index f6b55ecc..f8f1e5a8 100644 --- a/.github/workflows/docker-publish-multi.yml +++ b/.github/workflows/docker-publish-multi.yml @@ -162,17 +162,26 @@ jobs: ref: main path: home-assistant-addon + - name: Extract branch name + shell: bash + run: echo "BRANCH_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV + + - name: Short SHA + shell: bash + run: echo "SHORT_SHA=${GITHUB_SHA:0:7}" >> $GITHUB_ENV + - name: Update version in config.yaml run: | cd home-assistant-addon/frameos - echo "Updating version in config.yaml to main-${{ env.SHORT_SHA }}" - sed -i "s/^version: .*/version: main-${{ env.SHORT_SHA }}/" config.yaml + echo "Updating version in config.yaml to ${{ env.BRANCH_NAME }}-${{ env.SHORT_SHA }}" + sed -i "s/^version: .*/version: ${{ env.BRANCH_NAME }}-${{ env.SHORT_SHA }}/" config.yaml - name: Commit changes uses: EndBug/add-and-commit@v9 with: - message: "Update FrameOS version to main-${{ env.SHORT_SHA }}" + message: "Update FrameOS version to ${{ env.BRANCH_NAME }}-${{ env.SHORT_SHA }}" add: "." + cwd: home-assistant-addon push: true author_name: FrameOS Bot author_email: git@frameos.net