Skip to content
This repository was archived by the owner on Jan 3, 2022. It is now read-only.

Commit 3a89de8

Browse files
committed
Fix
1 parent a315c3a commit 3a89de8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
const core = require('@actions/core');
22
const base64 = require('file-base64');
33
const path = require('path');
4+
const untildify = require('untildify');
5+
46
// most @actions toolkit packages have async methods
57
async function run() {
68
try {
7-
const filePath = core.getInput('filePath');
9+
const filePath = untildify(core.getInput('filePath'));
810
let promise = new Promise(function(resolve, reject) {
911
base64.encode(path.normalize(filePath), function(err, base64String) {
1012
if(err){

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"homepage": "https://github.com/actions/javascript-action#readme",
2626
"dependencies": {
2727
"@actions/core": "^1.1.1",
28-
"file-base64": "^1.0.0"
28+
"file-base64": "^1.0.0",
29+
"untildify": "^4.0.0"
2930
},
3031
"devDependencies": {
3132
"@zeit/ncc": "^0.20.5",

0 commit comments

Comments
 (0)