Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
9884585
First test.
Jul 29, 2026
f07d7cc
Comentários necessários?
Jul 29, 2026
89e8bcf
Não, o problema era run: ... com uses:?
Jul 29, 2026
2005c58
Documentação do actions/checkout invalida?
Jul 29, 2026
bcb63f5
Doc válida, mas onde estamos?
Jul 29, 2026
adbbad0
Doc válida, mas onde estamos?
Jul 29, 2026
64842fc
Checkout Inception, the movie
Jul 29, 2026
c98a469
only to be sure...
Jul 29, 2026
6675834
only to be sure... 2
Jul 29, 2026
21c1efe
only to be sure... 3
Jul 29, 2026
e021494
only to be sure... 3
Jul 29, 2026
bc500e3
only to be sure... 5
Jul 29, 2026
4f52f66
only to be sure... 6
Jul 29, 2026
14d7ce7
Finally, merge tests
Jul 29, 2026
5770f0d
Now with squash merge
Jul 29, 2026
59fec93
Fixing checkout master
Jul 29, 2026
f6ffce2
Fixing pathspec not know, take 1
Jul 29, 2026
48073bc
Fixing pathspec not know, take 2
Jul 29, 2026
0b21f31
Fixing pathspec not know, take 3
Jul 29, 2026
6ddcc65
Fixing pathspec not know, take 4
Jul 29, 2026
fbcf206
Trying to pull everything, take 1
Jul 29, 2026
a0a71f7
Minimization, take 1
Jul 29, 2026
0f52363
Minimization, take 2
Jul 29, 2026
423d97c
Minimization, take 3
Jul 29, 2026
128afd3
Minimization, take 4
Jul 29, 2026
4883cb0
Minimization, take 5
Jul 29, 2026
fa92ba2
Minimization, take 6
Jul 29, 2026
6d09b9d
Minimization, take 7
Jul 29, 2026
9a81a13
GH git does not like show-ref -d --tags
Jul 29, 2026
74b1527
Knowing know refs/names
Jul 29, 2026
9aa60fc
Clean ups
Jul 29, 2026
e95d6ed
More clean ups
Jul 29, 2026
16362e9
More more clean ups
Jul 29, 2026
7c5fafb
Clean up, test without fetch- params
Jul 29, 2026
272c37e
without fetch- fail, and with, but without git fetch?
Jul 29, 2026
155d50d
Minimized.
Jul 29, 2026
b5a78b5
Set anonymous ident, so merge --squash does not fail
Aug 5, 2026
c885fb5
Add a second test, trying to minimize the git command
Aug 5, 2026
ecfe89b
Add a third test, as --no-commit is suspect
Aug 5, 2026
da903e3
Extra -c
Aug 5, 2026
b34c905
Minimized
Aug 5, 2026
5183286
Alternative in plain git
Aug 8, 2026
2f9f2d8
fix
Aug 8, 2026
728263e
repo url
Aug 8, 2026
946abaf
Minimization
Aug 8, 2026
90ca91b
Clean up
Aug 8, 2026
5258d6d
Separate old and new
Aug 8, 2026
87bb25e
Fixes
Aug 8, 2026
3719ef9
verbosity
Aug 8, 2026
1f7f268
verbosity
Aug 8, 2026
9653b30
trying to recreate identical result
Aug 8, 2026
1924ec2
Identical message
Aug 8, 2026
ee87668
Minimize
Aug 8, 2026
b0093e6
faster?
Aug 8, 2026
24f0fc6
Docs and done
Aug 8, 2026
02f7da4
Make stuckness more visible
Aug 10, 2026
b00891c
Faster?
Aug 10, 2026
c7f09b2
Add fetch
Aug 10, 2026
5ae2b80
Without depth and without fetch
Aug 10, 2026
0174f4d
Without depth and with fetch
Aug 10, 2026
67537b6
Inline docs, performance tests
Aug 11, 2026
2176571
More performance tests
Aug 11, 2026
a02e84c
Docs, performance.
Aug 11, 2026
7780dba
More idiomatic en
Aug 11, 2026
00e73e8
Inline docs
Aug 19, 2026
f5fac3b
Replace the CI builder
Aug 25, 2026
814297b
ws
Aug 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 0 additions & 40 deletions .github/workflows/build.yaml

This file was deleted.

66 changes: 66 additions & 0 deletions .github/workflows/buildxml.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@

# Shallow clone default branch and merge the PR using only plain git
#
# Avoids getting stuck in the past, like GH actions/checkout does, and
# we do not need any other stuff for building the manual. The results
# of workflow re-runs always match with results of normal or squashed
# merges of pull requests, immediately after a workflow re-run.
#
# To be pedantic clear, Github's pull requests calculate the merge
# points of PRs, but only at the PR's "synchronize" event. This
# does *not* include changes on master/main, *or* workflows re-runs.
# So, in busy repositories, the results of CI checks are almost always
# outdated and invalid, not representing the future state of the default
# branch after the pull request is merged. Re-running workflows also
# changes nothing.
#
# Notes:
# - clone --depth=1 downloads the same data as actions/checkout;
# - clone --filter=tree:0 implies --depth=1, and also download the
# linear commit history of the branch;
# - github.event.pull_request.head.sha maps to the PR tip, not merged.
#
# Does not work:
# - clone --depth=1 and merge from PR SHA, with or without fetch by SHA;
# - clone --single-branch and merge from PR SHA, without fetch by SHA.

name: Build and validate XML

on:
push:
pull_request:

jobs:
build:
name: Run configure
runs-on: ubuntu-latest
steps:

- name: Clone repositories
run: |
# Shallow clones
set -x
git clone -q --depth=1 https://github.com/php/doc-base.git doc-base
git clone -q --depth=1 https://github.com/php/doc-en.git en
git clone -q --filter=tree:0 https://github.com/php/doc-pt_br.git pt_br

- name: Merge pull request
run: |
# Plain git merge

cd pt_br

git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
mainsha=$(git rev-parse HEAD)
message="Merge ${{ github.event.pull_request.head.sha }} into ${mainsha}"

set -x
git fetch -q --filter=tree:0 origin ${{ github.event.pull_request.head.sha }}
git merge -q -m "$message" ${{ github.event.pull_request.head.sha }}

- name: Build manual.xml
run: |
php doc-base/configure.php --disable-libxml-check --enable-xml-details --redirect-stderr-to-stdout --with-lang=pt_br 2>&1
echo
sha1sum doc-base/temp/manual.xml
Loading