/.github/workflows/ci-check-repo.yaml: only run verify on fork prs, error if not formatted with actionable error

This commit is contained in:
coffeegoddd
2023-04-20 16:26:17 -07:00
parent a6d02445fe
commit 43e3fc57a2
+5
View File
@@ -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: