Skip to content

Commit

Permalink
Check releases fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirosson committed Dec 3, 2023
1 parent 4fcfae9 commit caaaa5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
with:
item-id: passport-batch-2
github-org: Foundation-Devices
github-repo: passport-firmware
github-repo: passport2
onekey-mini:
uses: ./.github/workflows/check-release-template.yml
with:
Expand Down
6 changes: 4 additions & 2 deletions scripts/github-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ axios
latestVersion = latestVersion.replace(/^classic\//, '');
latestVersion = latestVersion.replace(/^touch\//, '');

// Passport
latestVersion = latestVersion.replace(/^Passport /, '');
latestVersion = latestVersion.replace(/ Firmware$/, '');

// ProKey
latestVersion = latestVersion.replace(/^Prokey Firmware /, '');

Expand All @@ -82,8 +86,6 @@ axios
latestVersion = latestVersion.replace(/^Android Release\s*/, '');
latestVersion = latestVersion.replace(/^Release\s*/, '');
latestVersion = latestVersion.replace(/^release_/, '');
latestVersion = latestVersion.replace(/^Passport /, '');
latestVersion = latestVersion.replace(/ Firmware$/, '');

// Check if the input starts with "v" and is a valid version (x.y.z)
const versionPattern = /^v\d+(\.\d+)*$/;
Expand Down

0 comments on commit caaaa5e

Please sign in to comment.