From 85a52ad1dfc3f55950b7ae3b59c2c18eaee0e37e Mon Sep 17 00:00:00 2001 From: Innei Date: Thu, 26 Sep 2024 13:22:52 +0800 Subject: [PATCH] fix: nightly build ci Signed-off-by: Innei --- .github/workflows/nightly.yml | 18 ++++++++++++++++-- .../providers/extension-expose-provider.tsx | 1 - 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 5be5b9140..6c75f4950 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -13,7 +13,22 @@ env: NODE_OPTIONS: --max-old-space-size=8192 jobs: + check-for-changes: + runs-on: ubuntu-latest + outputs: + should_run: ${{ steps.check.outputs.should_run }} + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Check for code changes + id: check + run: | + git diff --quiet @{1.day.ago} HEAD -- ':!.github' || echo "should_run=true" >> $GITHUB_OUTPUT + nightly-release: + needs: check-for-changes + if: needs.check-for-changes.outputs.should_run == 'true' runs-on: ${{ matrix.os }} strategy: @@ -151,7 +166,6 @@ jobs: name: Nightly ${{ env.NIGHTLY_VERSION }} draft: false prerelease: true - tag_name: nightly-${{ env.NIGHTLY_VERSION }} files: | out/make/**/*.dmg out/make/**/*.zip @@ -160,7 +174,7 @@ jobs: out/make/**/*.yml body: | This is an automated nightly release for testing purposes. - Version: 0.0.0-nightly.${{ env.NIGHTLY_VERSION }} + Version: ${{ env.NIGHTLY_VERSION }} **Warning:** This build may be unstable and is not recommended for production use. env: diff --git a/apps/renderer/src/providers/extension-expose-provider.tsx b/apps/renderer/src/providers/extension-expose-provider.tsx index f42f668fe..46b875a06 100644 --- a/apps/renderer/src/providers/extension-expose-provider.tsx +++ b/apps/renderer/src/providers/extension-expose-provider.tsx @@ -10,7 +10,6 @@ import { useModalStack } from "~/components/ui/modal" import { FeedForm } from "~/modules/discover/feed-form" import { usePresentUserProfileModal } from "~/modules/profile/hooks" - export const ExtensionExposeProvider = () => { const { present } = useModalStack() useLayoutEffect(() => {