Skip to content
Open
Changes from all commits
Commits
Show all changes
36 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
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
80 changes: 65 additions & 15 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# See https://docs.github.com/en/actions.

name: Build

on:
Expand All @@ -13,28 +13,78 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
# See https://github.com/actions/checkout.
- name: Checkout doc-pt_br
uses: actions/checkout@v3

- name: Checkout doc-base
uses: actions/checkout@v7
with:
path: pt_br
repository: php/doc-base
path: doc-base

- name: Checkout doc-en
uses: actions/checkout@v3
uses: actions/checkout@v7
with:
repository: php/doc-en
path: en

- name: Checkout doc-base
uses: actions/checkout@v3
# GH actions/checkout, automatically merges, but tends to get stuck in the past.
# See: https://github.com/php/doc-base/pull/329

- name: Checkout and merge doc-pt_br
uses: actions/checkout@v7
with:
repository: php/doc-base
path: doc-base
path: pt_br

- 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
sha1sum doc-base/temp/manual.xml



- name: Alternative path, uses userland merge instead
run: rm -rf pt_br

- name: Checkout doc-pt_br
uses: actions/checkout@v7
with:
fetch-depth: 0
fetch-tags: true
path: pt_br
ref: ${{ github.event.pull_request.head.sha }}

- name: Merge doc-pt_br
run: |
# Merge into main/master from *current* names/SHAS.
#
# - github.event.pull_request.base.ref : main/master
# - github.event.pull_request.head.sha : PR head
#
# Does not work:
# - actions/checkout without fetch-depth / fetch-tags
# - git fetch by github.event.pull_request.head.ref

cd pt_br
git show-ref -d --head
echo

# Give the detached head a name, to avoid warnings
git switch -c commit-${{ github.event.pull_request.head.sha }}
echo

# Checkout main/master, by name, to always reach it's last commit
git checkout ${{ github.event.pull_request.base.ref }}
echo

# Squash and merge, from the branch SHA
git merge --squash ${{ github.event.pull_request.head.sha }}
echo

- name: Quality Assurance scripts
run: php doc-base/scripts/qa/extensions.xml.php --check
git status --short
git diff --stat
echo

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