Skip to content

Commit b866d07

Browse files
committed
api_refs.yaml: 4.6 support
1 parent 0a078f2 commit b866d07

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/api_refs.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,20 @@ jobs:
4343
env:
4444
SATIS_NETWORK_KEY: ${{ secrets.SATIS_NETWORK_KEY }}
4545
SATIS_NETWORK_TOKEN: ${{ secrets.SATIS_NETWORK_TOKEN }}
46+
BASE_BRANCH: ${{ steps.version_and_branches.outputs.base_branch }}
4647
run: |
4748
composer config --global http-basic.updates.ibexa.co $SATIS_NETWORK_KEY $SATIS_NETWORK_TOKEN
48-
tools/api_refs/api_refs.sh
49-
# Fix escape character:
50-
perl -pi -e 's/\e/\\E/g' tools/api_refs/.phpdoc/template/package-edition-map.twig
49+
if [[ '4.6' != $BASE_BRANCH ]]; then
50+
tools/api_refs/api_refs.sh
51+
# Fix escape character:
52+
perl -pi -e 's/\e/\\E/g' tools/api_refs/.phpdoc/template/package-edition-map.twig
53+
else
54+
tools/php_api_ref/phpdoc.sh
55+
# Fix escape character:
56+
perl -pi -e 's/\e/\\E/g' tools/api_refs/php_api_ref/template/package-edition-map.twig
57+
# cd tools/raml2html/; composer install; cd -;
58+
# php tools/raml2html/raml2html.php build --non-standard-http-methods=COPY,MOVE,PUBLISH,SWAP -t default -o docs/api/rest_api/rest_api_reference/ docs/api/rest_api/rest_api_reference/input/ibexa.raml
59+
fi
5160
5261
- name: Commit
5362
env:

0 commit comments

Comments
 (0)