From 5b0b91b542c78bf3de627862787ad0df97a58a7d Mon Sep 17 00:00:00 2001 From: Shakar <5h4k4r.b4kr@gmail.com> Date: Sun, 17 Sep 2023 13:54:11 +0300 Subject: [PATCH] Update index Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com> --- index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index a3e554e..70cde83 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ -import * as core from '@actions/core' -import * as github from '@actions/github' -import * as fs from 'fs'; +const core = require('@actions/core') +const github = require('@actions/github') +const fs = require('fs') try { const label = core.getInput('label'); console.log(`Label: ${label}`) @@ -8,7 +8,7 @@ try { core.setOutput("label", label); - fs.readFile('/Readme.md', 'utf8', (err, data) => { + fs.readFile('/README.md', 'utf8', (err, data) => { if (err) { console.error(err); return;