@@ -21,37 +21,33 @@ inputs:
2121runs :
2222 using : ' composite'
2323 steps :
24- - name : Setting initial data...
25- run : |
26- mkdir -p "${{ inputs.output_path }}" || true
27-
28- GENERATOR_DOCS_PATH=$(php ${{ github.action_path }}/bin/realpath.php "${{ inputs.output_path }}")
29- GENERATOR_TMP_FILES_PATH="${{ runner.temp }}/phpdocs-${{ github.sha }}-${{ github.run_id }}-${{ github.github.run_attempt }}"
30-
31- echo "GENERATOR_TMP_FILES_PATH=$GENERATOR_TMP_FILES_PATH" >> $GITHUB_ENV
32- echo "GENERATOR_DOCS_PATH=$GENERATOR_DOCS_PATH" >> $GITHUB_ENV
33-
34- rm -rf "$GENERATOR_TMP_FILES_PATH" || true
35- mkdir -p "$GENERATOR_TMP_FILES_PATH"
24+ - name : Setting env variables...
25+ env :
26+ GENERATOR_TMP_FILES_PATH : " ${{ runner.temp }}/phpdocs-${{ github.sha }}-${{ github.run_id }}-${{ github.github.run_attempt }}"
27+ GENERATOR_DOCS_PATH : ${{ inputs.output_path }}
28+ run : $ACTION_BIN_PATH/generate-env.sh "$GENERATOR_TMP_FILES_PATH" "$GENERATOR_DOCS_PATH" >> $GITHUB_ENV
29+ shell : bash
30+
31+ - name : Creating required paths...
32+ run : $ACTION_BIN_PATH/create-paths.sh
3633 shell : bash
3734
3835 - name : Running phpDocumentator...
39- run : bash ${{ github.action_path }}/bin /phpdoc.sh "${{ inputs.ignored_files }}" "${{ inputs.phpdocumentor_version }}"
36+ run : $ACTION_BIN_PATH /phpdoc.sh "${{ inputs.ignored_files }}" "${{ inputs.phpdocumentor_version }}"
4037 shell : bash
4138
4239 - name : Installing evert/phpdoc-md...
43- run : composer global require 'evert/phpdoc-md=~0.2.0'
40+ run : $ACTION_BIN_PATH/add-composer-packages.sh
4441 shell : bash
4542
4643 - name : Generating documentation...
47- run : composer global exec phpdocmd "$GENERATOR_TMP_FILES_PATH/structure.xml" "$GENERATOR_DOCS_PATH"
44+ run : $ACTION_BIN_PATH/generate-docs.sh
4845 shell : bash
4946
5047 - name : Uninstalling evert/phpdoc-md...
51- run : composer global remove evert/phpdoc-md
48+ run : $ACTION_BIN_PATH/remove-composer-dependencies.sh
5249 shell : bash
5350
5451 - name : Deleting tmp data...
55- run : |
56- rm -rf "$GENERATOR_TMP_FILES_PATH" || true
52+ run : $ACTION_BIN_PATH/remove-tmp-data.sh
5753 shell : bash
0 commit comments