Skip to content

Commit

Permalink
Merge pull request #4 from shivammathur/develop
Browse files Browse the repository at this point in the history
Fix reading php version
  • Loading branch information
shivammathur authored Feb 17, 2020
2 parents ac570d4 + 6efc9a6 commit 08cc68f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 17 deletions.
3 changes: 2 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1550,7 +1550,8 @@ const utils = __importStar(__webpack_require__(163));
function run() {
return __awaiter(this, void 0, void 0, function* () {
try {
const version = yield utils.getInput('php-version', true);
let version = yield utils.getInput('php-version', true);
version = version.length > 1 ? version.slice(0, 3) : version + '.0';
const extensions = yield utils.getInput('extensions', true);
const key = yield utils.getInput('key', true);
const script_path = path.join(__dirname, '../src/extensions.sh');
Expand Down
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cache-extensions",
"version": "1.0.0",
"version": "1.0.1",
"private": false,
"description": "Cache extensions in GitHub Actions",
"main": "dist/index.js",
Expand Down
3 changes: 2 additions & 1 deletion src/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import * as utils from './utils';
*/
export async function run(): Promise<void> {
try {
const version: string = await utils.getInput('php-version', true);
let version: string = await utils.getInput('php-version', true);
version = version.length > 1 ? version.slice(0, 3) : version + '.0';
const extensions: string = await utils.getInput('extensions', true);
const key: string = await utils.getInput('key', true);
const script_path: string = path.join(__dirname, '../src/extensions.sh');
Expand Down

0 comments on commit 08cc68f

Please sign in to comment.