Skip to content

Commit 327f29b

Browse files
authored
Final touches for action steps
1 parent 38640a4 commit 327f29b

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

action.yml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,27 @@ runs:
2929
run: cp -R ./* /tmp/data/
3030
shell: bash
3131

32-
- name: Getting files list...
32+
- name: Getting PHP class list...
3333
uses: impresscms-dev/[email protected]
3434
with:
35-
output_file: /tmp/php-classes.lst
35+
output_file: /tmp/php-classes.original.lst
36+
37+
- name: Generating temp filtering rules file...
38+
uses: DamianReeves/[email protected]
39+
with:
40+
path: /tmp/filtering-rules.lst
41+
contents: "{{ input.included_classes }}"
42+
write-mode: overwrite
43+
44+
- name: Filtering PHP classes list...
45+
uses: impresscms-dev/[email protected]
46+
with:
47+
rules_file: /tmp/filtering-rules.lst
48+
input_file: /tmp/php-classes.original.lst
49+
output_file: /tmp/php-classes.filtered.lst
3650

3751
- name: Generating generator config...
38-
run: php ${{ github.action_path }}/generate-config.php "/tmp/data/.phpdoc-md" "/tmp/php-classes.lst" "{{ input.class_root_namespace }}" "{{ input.output_path }}"
52+
run: php ${{ github.action_path }}/generate-config.php "/tmp/data/.phpdoc-md" "/tmp/php-classes.filtered.lst" "{{ input.class_root_namespace }}" "{{ input.output_path }}"
3953
shell: bash
4054

4155
- name: Including documentation generator...
@@ -48,7 +62,10 @@ runs:
4862
working-directory: /tmp/data/
4963
shell: bash
5064

51-
- name: Deleting tmp folder...
52-
run: rm -rf /tmp/data || true
65+
- name: Deleting tmp data...
66+
run: |
67+
rm -rf /tmp/data || true
68+
rm -rf /tmp/filtering-rules.lst || true
69+
rm -rf /tmp/php-classes.original.lst || true
70+
rm -rf /tmp/php-classes.filtered.lst || true
5371
shell: bash
54-
continue-on-error: true

0 commit comments

Comments
 (0)