Skip to content

Commit

Permalink
compare with HEAD in place of github.sha
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Jan 1, 2025
1 parent 46ca5d4 commit 80c1345
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
"React 18",
"React 19",
"Next.js",
"Next.js 13",
"Next.js 14",
"Next.js 15",
"React server components",
Expand Down

0 comments on commit 80c1345

Please sign in to comment.