File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -26,16 +26,15 @@ jobs:
2626
2727 - name : Check README for latest release URLs
2828 run : |
29- node << EOF
29+ node --input-type=module <<' EOF'
3030 import { readFileSync } from 'fs';
3131 import { Octokit } from '@octokit/rest';
3232
3333 const octokit = new Octokit(); // Unauthenticated for public API calls
3434
35- ( async () => {
35+ const checkLatestRelease = async () => {
3636 const readme = readFileSync('README.md', 'utf-8');
37-
38- const regex = /- (.*?) \(https:\\/\\/github\\.com\\/.*?)\.*?\(.*?)\\(https:\\/\\/github\\.com\\/.*?\\/releases\\/.*)\/g;
37+ const regex = /- (.*?) (https:\/\/github\.com\/.*?).*?(.*?)(https:\/\/github\.com\/.*?\/releases\/.*)/g;
3938 let match;
4039 let allCorrect = true;
4140
6968 if (!allCorrect) {
7069 process.exit(1);
7170 }
72- })();
71+ };
72+
73+ checkLatestRelease();
7374 EOF
You can’t perform that action at this time.
0 commit comments