Skip to content

Commit 65409bf

Browse files
committed
Fix variable scoping issue
1 parent ba5d416 commit 65409bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

create-deployment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function fetchBranchConfig(branchName, core) {
55
const yaml = require('js-yaml');
66

77
try {
8-
let fileContents = fs.readFileSync('./appspec.yml', 'utf8');
8+
var fileContents = fs.readFileSync('./appspec.yml', 'utf8');
99
} catch (e) {
1010
if (e.code == 'ENOENT') {
1111
core.setFailed('🙄 appspec.yml file not found. Hint: Did you run actions/checkout?');

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function fetchBranchConfig(branchName, core) {
2121
const yaml = __webpack_require__(1917);
2222

2323
try {
24-
let fileContents = fs.readFileSync('./appspec.yml', 'utf8');
24+
var fileContents = fs.readFileSync('./appspec.yml', 'utf8');
2525
} catch (e) {
2626
if (e.code == 'ENOENT') {
2727
core.setFailed('🙄 appspec.yml file not found. Hint: Did you run actions/checkout?');

0 commit comments

Comments
 (0)