From 3fb4de8560ed8fbd86be69ec47c26d9355507426 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 8 Sep 2026 11:58:23 -0700 Subject: [PATCH] ci: run the check with the script from the pull request --- .gitea/workflows/depends_upstream.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/depends_upstream.yaml b/.gitea/workflows/depends_upstream.yaml index 5d0c5ff2..ef1a725b 100644 --- a/.gitea/workflows/depends_upstream.yaml +++ b/.gitea/workflows/depends_upstream.yaml @@ -3,6 +3,11 @@ # main branch matches, so a pull request waiting for gitea cannot be merged. # It is a workflow of its own so that a label change does not cancel the build # and the preview deployment of the `checks` workflow in test.yaml. +# +# The check script comes from the pull request, like the workflow file itself: +# `pull_request` runs both from the head, so taking the script from the base +# branch would not gain anything and would leave this workflow unable to run on +# the pull request that adds it. name: checks on: @@ -25,9 +30,6 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: - # the check script is taken from the base branch: a pull request must - # not be able to weaken its own gate - ref: ${{ github.event.pull_request.base.ref }} persist-credentials: false - name: check the upstream dependencies env: