From 80c134533cddadbf78f0c9def52cfc5c2136a6dc Mon Sep 17 00:00:00 2001 From: Mayank Date: Wed, 1 Jan 2025 21:07:16 +0530 Subject: [PATCH] compare with HEAD in place of github.sha --- .github/workflows/docs.yml | 2 +- lib/package.json | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index de52eb6d..79c16f98 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -21,7 +21,7 @@ jobs: id: pub run: | git fetch origin main && git checkout main - if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -q "lib/package.json"; then + if git diff --name-only ${{ github.event.before }} HEAD | grep -q "lib/package.json"; then echo "file_changed=true" >> $GITHUB_ENV else echo "file_changed=false" >> $GITHUB_ENV diff --git a/lib/package.json b/lib/package.json index d0c4c88a..dabcefb4 100644 --- a/lib/package.json +++ b/lib/package.json @@ -75,7 +75,6 @@ "React 18", "React 19", "Next.js", - "Next.js 13", "Next.js 14", "Next.js 15", "React server components",