From a9f0cc80dee99d4ee5cc497d44f7b8a72af3bbc9 Mon Sep 17 00:00:00 2001 From: Christina Holland Date: Thu, 13 Apr 2023 11:52:17 -0700 Subject: [PATCH] fix doc notification (#7219) --- .github/workflows/release-staging.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-staging.yml b/.github/workflows/release-staging.yml index 702b55bd935..40cf49112d0 100644 --- a/.github/workflows/release-staging.yml +++ b/.github/workflows/release-staging.yml @@ -134,7 +134,9 @@ jobs: https://api.github.com/repos/firebase/firebase-js-sdk/dispatches - name: Check for changes requiring a reference doc publish id: docs-check - run: git diff --exit-code origin/master HEAD docs-devsite + run: | + LAST_PUBLISHED_VERSION=$(npm info firebase version) + git diff --exit-code firebase@$LAST_PUBLISHED_VERSION HEAD docs-devsite - name: No diff, docs not needed if: ${{ success() }} run: echo "DOCS_NEEDED=false" >> $GITHUB_STATE