|
27 | 27 | # Workflow jobs:
|
28 | 28 | jobs:
|
29 | 29 |
|
30 |
| - # Define a job for updating namespace table of contents in README.md files... |
| 30 | + # Define a job for updating namespace table of contents... |
31 | 31 | update:
|
32 | 32 |
|
33 | 33 | # Define a display name:
|
34 |
| - name: 'Update table of contents in README.md files' |
| 34 | + name: 'Update namespace ToCs' |
35 | 35 |
|
36 | 36 | # Define the type of virtual host machine:
|
37 | 37 | runs-on: ubuntu-latest
|
@@ -66,34 +66,36 @@ jobs:
|
66 | 66 | make install-node-modules || make install-node-modules || make install-node-modules
|
67 | 67 | timeout-minutes: 15
|
68 | 68 |
|
69 |
| - # Initialize stdlib development environment: |
70 |
| - - name: 'Initialize stdlib development environment' |
| 69 | + # Initialize development environment: |
| 70 | + - name: 'Initialize development environment' |
71 | 71 | run: |
|
72 |
| - make init || make init || make init |
| 72 | + make init |
73 | 73 | timeout-minutes: 5
|
74 | 74 |
|
75 |
| - # Update namespace table of contents in README.md files: |
| 75 | + # Generate list of namespace READMEs: |
| 76 | + - name: 'Generate list of namespace READMEs' |
| 77 | + run: | |
| 78 | + echo "::set-output name=files::$( make list-pkgs-namespaces | sed 's/.*/lib\/node_modules\/&\/README.md/' | tr '\n' ' ' )" |
| 79 | + id: namespace_files |
| 80 | + |
| 81 | + # Update namespace table of contents: |
76 | 82 | - name: 'Update tables of contents'
|
77 | 83 | run: |
|
78 |
| - make markdown-namespace-tocs-files FILES="$( make list-pkgs-namespaces | sed 's/.*/lib\/node_modules\/&\/README.md/' | tr '\n' ' ' )" |
79 |
| - make markdown-pkg-urls-files FILES="$( make list-pkgs-namespaces | sed 's/.*/lib\/node_modules\/&\/README.md/' | tr '\n' ' ' )" |
| 84 | + make markdown-namespace-tocs-files FILES="${{ steps.namespace_files.outputs.files }}" |
| 85 | + make markdown-pkg-urls-files FILES="${{ steps.namespace_files.outputs.files }}" |
80 | 86 | timeout-minutes: 15
|
81 | 87 |
|
82 | 88 | # Create a pull request with the updated tables of contents:
|
83 | 89 | - name: 'Create pull request'
|
84 | 90 | uses: peter-evans/create-pull-request@v3
|
85 | 91 | with:
|
86 |
| - title: 'Update namespace table of contents in README.md files' |
| 92 | + title: 'Update namespace table of contents' |
87 | 93 | body: |
|
88 | 94 | This PR
|
89 | 95 |
|
90 |
| - - updates namespace table of contents in README.md files |
91 |
| -
|
92 |
| - * * * |
93 |
| -
|
94 |
| - @stdlib-js/reviewers |
| 96 | + - updates namespace table of contents |
95 | 97 |
|
96 |
| - commit-message: 'Update namespace table of contents in README.md files' |
| 98 | + commit-message: 'Update namespace table of contents' |
97 | 99 | committer: 'stdlib-bot <[email protected]>'
|
98 | 100 | labels: |
|
99 | 101 | documentation
|
|
0 commit comments