mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-26 03:30:09 -05:00
/.github/workflows/ci-check-repo.yaml: only run verify on fork prs, error if not formatted with actionable error
This commit is contained in:
@@ -40,6 +40,11 @@ jobs:
|
||||
echo "code is formatted"
|
||||
else
|
||||
echo "code is not formatted"
|
||||
if [ "${{ github.repository }}" != "dolthub/dolt" ]; then
|
||||
echo "Pull requests from forks must be manually formatted."
|
||||
echo "Please run dolt/go/utils/repofmt/format_repo.sh to format this pull request."
|
||||
exit 1;
|
||||
fi
|
||||
echo "format=true" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user