File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3232
3333 const checkLatestRelease = async () => {
3434 const readme = readFileSync('README.md', 'utf-8');
35- const regex = /- ### (.*?)(https:\/\/github\.com\/.*?).*? .*?( https:\/\/github\.com\/.*?\/releases\/.*? )/g;
35+ const regex = /- ### (.*?)(https:\/\/github\.com\/.*?).*?\n .*?https:\/\/github\.com\/.*?\/releases\/(latest|tag\/v.* )/g;
3636 let match;
3737 let allCorrect = true;
3838
5757 const latestReleaseUrl = latestRelease.html_url;
5858
5959 console.log(` ➤ Latest Release URL: ${latestReleaseUrl}`);
60- if (currentReleaseUrl === latestReleaseUrl ) {
60+ if (`https://github.com/${repoPath}/releases/${latestRelease.tag_name}` === currentReleaseUrl ) {
6161 console.log(`✅ ${pluginName} is up-to-date.`);
6262 } else {
6363 console.log(`❌ ${pluginName} is outdated. Update the URL to ${latestReleaseUrl}`);
You can’t perform that action at this time.
0 commit comments