Skip to content

Commit 33b5cb8

Browse files
authored
Update check-latest-release.yml
1 parent 18d3e63 commit 33b5cb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/check-latest-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
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
@@ -57,7 +57,7 @@ jobs:
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}`);

0 commit comments

Comments
 (0)