From 20c63c40a0f88ac101780ca19d13c720b9383032 Mon Sep 17 00:00:00 2001 From: Chris <1105672+firstof9@users.noreply.github.com> Date: Sat, 13 Jul 2024 13:13:09 -0700 Subject: [PATCH] chore: update release workflow --- .github/workflows/release.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c5527807..1d013549 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,6 +1,7 @@ name: Release on: + workflow_dispatch: release: types: [published] @@ -18,7 +19,7 @@ jobs: - name: "Set version numbmer" run: | - sed -i '/VERSION = /c\VERSION = "${{ steps.get_version.outputs.VERSION }}"' ${{ github.workspace }}/custom_components/mail_and_packages/const.py + sed -i '/\bVERSION\b = /c\VERSION = "${{ steps.get_version.outputs.VERSION }}"' ${{ github.workspace }}/custom_components/mail_and_packages/const.py sed -i '/version/c\ \"version\": \"${{ steps.get_version.outputs.VERSION }}\"' ${{ github.workspace }}/custom_components/mail_and_packages/manifest.json # Pack the mail_and_packages dir as a zip and upload to the release - name: ZIP MnP Dir @@ -32,4 +33,4 @@ jobs: file: ${{ github.workspace }}/custom_components/mail_and_packages/mail_and_packages.zip asset_name: mail_and_packages.zip tag: ${{ github.ref }} - overwrite: true \ No newline at end of file + overwrite: true