From 53620e632744ded3826c7df34f66690c0638a372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sondre=20Gr=C3=B8n=C3=A5s?= <44143748+sondregronas@users.noreply.github.com> Date: Mon, 8 Jul 2024 21:27:36 +0200 Subject: [PATCH 1/2] Use fetch-depth: 0 --- .github/workflows/hassfest.yml | 2 ++ .github/workflows/release.yml | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/hassfest.yml b/.github/workflows/hassfest.yml index 5df6b0a..72aa20e 100644 --- a/.github/workflows/hassfest.yml +++ b/.github/workflows/hassfest.yml @@ -11,6 +11,8 @@ jobs: runs-on: "ubuntu-latest" steps: - uses: "actions/checkout@v4" + with: + fetch-depth: 0 - name: Get the latest tag run: | echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5bcc37e..568dcac 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,9 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - + with: + fetch-depth: 0 + - name: Set version to release tag run: | sed -i "s/GITHUB_RELEASE_VERSION/${{ github.event.release.tag_name }}/g" custom_components/ankermake/manifest.json From c54b565ff6071fe0b1722ef836000f04fc65b859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sondre=20Gr=C3=B8n=C3=A5s?= <44143748+sondregronas@users.noreply.github.com> Date: Mon, 8 Jul 2024 21:29:02 +0200 Subject: [PATCH 2/2] Update hassfest.yml --- .github/workflows/hassfest.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/hassfest.yml b/.github/workflows/hassfest.yml index 72aa20e..55e6826 100644 --- a/.github/workflows/hassfest.yml +++ b/.github/workflows/hassfest.yml @@ -13,10 +13,11 @@ jobs: - uses: "actions/checkout@v4" with: fetch-depth: 0 + - name: Get the latest tag run: | echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV - echo "TAG=${{ env.tag }}" + - name: Set version to the latest tag run: | sed -i "s/GITHUB_RELEASE_VERSION/${{ env.tag }}/g" custom_components/ankermake/manifest.json