Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

ci (docs): fix docs lint action on forks (#35277)

Charisc136ee4c193f
diff --git a/.github/workflows/docs-lint-v2.yml b/.github/workflows/docs-lint-v2.yml
index 6586eb38daf..aa977fcd5c4 100644
--- a/.github/workflows/docs-lint-v2.yml
+++ b/.github/workflows/docs-lint-v2.yml
@@ -63,7 +63,7 @@ jobs:
env:
BASE_REF: ${{ github.base_ref }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- BRANCH_NAME: ${{ github.head_ref }}
+ PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
set -o pipefail
run_lints() {
@@ -76,6 +76,6 @@ jobs:
LINT_EXIT_CODE=$?
set -e
if [[ $LINT_EXIT_CODE -ne 0 ]]; then
- gh pr comment "$BRANCH_NAME" --body "$LINT_RESULTS"
+ gh pr comment "$PR_NUMBER" --body "$LINT_RESULTS"
exit 1
fi