File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,10 @@ jobs:
2929 - name : Install Dependencies
3030 run : npm install axios
3131
32- - name : Add and Run Validation Script
32+ - name : Run Validation Script
3333 run : |
34- echo "Adding and running validation script"
35- cat <<EOF > validate-readme-links.js
34+ echo "Running validation script"
35+ node <<EOF
3636 const axios = require('axios');
3737 const fs = require('fs');
3838
@@ -42,13 +42,13 @@ jobs:
4242 let hasErrors = false;
4343
4444 const readmeContent = fs.readFileSync('./README.md', 'utf-8');
45- const pluginRegex = /### \(.*?)\\(.*?)\.*?\\\ !\Latest Release Date\\( .*?) \\\(.*?)\/gs;
45+ const pluginRegex = /### \(.*?)\\(.*?)\.*?\!\Latest Release Date\\.*?\\\(.*?)\/gs;
4646
4747 let match;
4848 while ((match = pluginRegex.exec(readmeContent)) !== null) {
4949 const pluginName = match[1];
5050 const repoUrl = match[2];
51- const readmeReleaseUrl = match[4 ];
51+ const readmeReleaseUrl = match[3 ];
5252
5353 try {
5454 const repoName = repoUrl.replace('https://github.com/', '');
@@ -105,5 +105,3 @@ jobs:
105105 process.exit(1);
106106 });
107107 EOF
108-
109- node validate-readme-links.js
You can’t perform that action at this time.
0 commit comments