Skip to content

Removes force_orphan from docs deploy on main - #6151

Merged
ooctipus merged 1 commit into
isaac-sim:mainfrom
nvsekkin:esekkin/remove-force-orphan
Jun 11, 2026
Merged

ooctipus merged 1 commit into
isaac-sim:mainfrom
nvsekkin:esekkin/remove-force-orphan

Conversation

@nvsekkin

@nvsekkin nvsekkin commented Jun 11, 2026 •

Copy link
Copy Markdown
Collaborator

Description

The nightly docs deploy on main fails at the Deploy to gh-pages step because force_orphan: true makes peaceiris/actions-gh-pages publish an orphan branch with git push --force, which the repo's "Block force pushes" branch rule rejects (GH013).

This removes force_orphan: true so the action uses a normal fast-forward push, matching the deploys that currently succeed. This is the same fix @kellyguo11 already applied to develop in #5853, which never landed on main.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the changelog and the corresponding version in the extension's config/extension.toml file
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@greptile-apps

greptile-apps Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Removes force_orphan: true from the Deploy to gh-pages step in the nightly docs workflow so it uses a normal fast-forward push instead of a forced overwrite, which was being rejected by the repository's "Block force pushes" branch protection rule. This mirrors the identical fix already applied to the develop branch in #5853.

  • The single-line deletion unblocks the nightly docs deploy on main by switching from git push --force (rejected by GH013) to a standard push.
  • keep_files: false remains, so deployed content is still fully replaced on each run; only the git history retention behaviour changes.

Confidence Score: 5/5

Safe to merge — the one-line deletion directly unblocks the failing nightly deploy and is consistent with the identical change already shipping on the develop branch.

The change is a single-line removal that aligns main with develop, where the same fix has been running without incident since #5853. keep_files: false is preserved, so deployed content is still fully replaced each run; the only difference is the gh-pages branch now retains cumulative commit history rather than being re-created as an orphan each time. No logic paths or secrets handling are touched.

No files require special attention.

Important Files Changed

Filename Overview
.github/workflows/docs.yaml Removes force_orphan: true from the gh-pages deploy step; the rest of the workflow is unchanged and the fix matches the existing develop branch configuration.

Sequence Diagram

sequenceDiagram
    participant Cron as Nightly Cron / workflow_dispatch
    participant GHA as GitHub Actions
    participant Build as build-multi-docs job
    participant Deploy as deploy-docs job
    participant GHP as gh-pages branch

    Cron->>GHA: trigger (schedule / workflow_dispatch)
    GHA->>Build: run build-multi-docs
    Build->>Build: generate multi-version docs
    Build->>GHA: upload docs-html artifact

    GHA->>Deploy: run deploy-docs
    Deploy->>GHA: download docs-html artifact

    Note over Deploy,GHP: Before fix — force_orphan: true
    Deploy--xGHP: git push --force (rejected: GH013 branch protection)

    Note over Deploy,GHP: After fix — force_orphan removed
    Deploy->>GHP: normal fast-forward push (accepted)
Loading

Reviews (1): Last reviewed commit: "Remove force_orphan: true from docs push" | Re-trigger Greptile

@ooctipus
ooctipus merged commit bcde512 into isaac-sim:main Jun 11, 2026
10 checks passed
Du-322 pushed a commit to StanleyChueh/IsaacLab that referenced this pull request Aug 11, 2026
# Description

The nightly docs deploy on `main` fails at the `Deploy to gh-pages` step
because `force_orphan: true` makes `peaceiris/actions-gh-pages` publish
an orphan branch with `git push --force`, which the repo's "Block force
pushes" branch rule rejects (`GH013`).

This removes `force_orphan: true` so the action uses a normal
fast-forward push, matching the deploys that currently succeed. This is
the same fix @kellyguo11 already applied to `develop` in isaac-sim#5853, which
never landed on `main`.

## Type of change

- Bug fix (non-breaking change which fixes an issue)

## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants