Skip to content

New PR causes the git fetch to fail #1226

Closed

Description

@sei-vsarvepalli

Describe the bug

The following code in .github/workflows/run_doctools.yml assumes the the PR's branch is local in the origin remote and not the git location of the PR source.

    steps:
      - uses: actions/checkout@v7
        with:
          ref: ${{ github.head_ref }}
          fetch-depth: 0

Preferably the checkout branch is actually from the source of the PR

${{ github.event.pull_request.head.sha }}

Expected behavior
Should pull the right branch from the right remote before running doctools

Found when trying to hand #1224 PR

Activity

  1. tschmidtb51 commented on Sep 8, 2026

    @tschmidtb51
    Contributor

    @bernhardreiter Please provide a PR.

  2. bernhardreiter commented on Sep 17, 2026

    @bernhardreiter
    Contributor

    @wagner-intevation can you check this, it seems to be more important blocking #1247

  3. wagner-intevation commented on Sep 17, 2026

    @wagner-intevation

    @wagner-intevation can you check this, it seems to be more important blocking #1247

    Done. See #1250

  4. wagner-intevation commented on Sep 23, 2026

    @wagner-intevation

    I think this issue can be closed now

  5. bernhardreiter commented on Sep 29, 2026

    @bernhardreiter
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions