Skip to content

Commit 0eef9bc

Browse files
authored
Update check-plugin-links.yml
Test 14
1 parent 7e65407 commit 0eef9bc

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/check-plugin-links.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)