Skip to content

Commit

Permalink
Create next-ignore.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
sjungling authored Oct 7, 2022
1 parent 9a81913 commit d36d639
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions next-ignore.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

echo "VERCEL_GIT_COMMIT_REF: $VERCEL_GIT_COMMIT_REF"

if [[ "$VERCEL_GIT_COMMIT_REF" =~ "test/" ||
"$VERCEL_GIT_COMMIT_REF" =~ "actions/" ||
"$VERCEL_GIT_COMMIT_REF" =~ "renovate/" ||
"$VERCEL_GIT_COMMIT_MESSAGE" =~ "docs:"
]] ; then
# Don't build
echo "🛑 - Build Canceled"
exit 0;
else
# Proceed with the build
echo "✅ - Build can proceed"
exit 1;
fi

1 comment on commit d36d639

@vercel
Copy link

@vercel vercel bot commented on d36d639 Oct 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment failed with the following error:

Resource is limited - try again in 5 hours (more than 100, code: "api-deployments-free-per-day").

Please sign in to comment.