Skip to content

Commit

Permalink
Cannot get release to run, so forced in changes
Browse files Browse the repository at this point in the history
  • Loading branch information
amnuts committed May 24, 2023
1 parent c7dd726 commit b63f118
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,17 @@ async function addPhive(data) {
}
exports.addPhive = addPhive;
async function addPHPUnitTools(data) {
if (data['version'] == 'latest') {
if (/7\.3|8\.0/.test(data['php_version'])) {
data['version'] = '9.6.8';
} else if (/7\.[2-3]/.test(data['php_version'])) {
data['version'] = '8.5.33';
} else if (/7\.[1-3]/.test(data['php_version'])) {
data['version'] = '7.5.20';
} else if (/7\.[0-2]/.test(data['php_version'])) {
data['version'] = '6.5.14';
}
}
data['url'] = await getPharUrl(data);
return await addArchive(data);
}
Expand Down

0 comments on commit b63f118

Please sign in to comment.