mirror of
https://github.com/pybind/pybind11.git
synced 2026-03-14 20:27:47 +00:00
* chore(deps): bump the actions group across 1 directory with 2 updates Bumps the actions group with 2 updates in the / directory: [actions/checkout](https://github.com/actions/checkout) and [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance). Updates `actions/checkout` from 1 to 5 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v1...v5) Updates `actions/attest-build-provenance` from 2 to 3 - [Release notes](https://github.com/actions/attest-build-provenance/releases) - [Changelog](https://github.com/actions/attest-build-provenance/blob/main/RELEASE.md) - [Commits](https://github.com/actions/attest-build-provenance/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: actions/attest-build-provenance dependency-version: '3' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com> * Update .github/workflows/ci.yml --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: Read the Docs PR preview
|
|
|
|
on:
|
|
pull_request_target:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
documentation-links:
|
|
runs-on: ubuntu-latest
|
|
if: github.event.repository.fork == false
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- name: Check for docs changes
|
|
id: docs_changes
|
|
run: |
|
|
# Fetch the PR head
|
|
git fetch origin pull/${{ github.event.pull_request.number }}/head:pr-head
|
|
|
|
# Show diff between base (current checkout) and PR head
|
|
if git diff --name-only HEAD pr-head | grep -q '^docs/'; then
|
|
echo "docs_changed=true" >> "$GITHUB_OUTPUT"
|
|
else
|
|
echo "docs_changed=false" >> "$GITHUB_OUTPUT"
|
|
fi
|
|
|
|
- uses: readthedocs/actions/preview@v1
|
|
if: steps.docs_changes.outputs.docs_changed == 'true'
|
|
with:
|
|
project-slug: "pybind11"
|
|
single-version: "true"
|