initial commit
This commit is contained in:
12
index.js
Normal file
12
index.js
Normal file
@@ -0,0 +1,12 @@
|
||||
'use strict'
|
||||
|
||||
const core = require('@actions/core')
|
||||
const { promises: fs } = require('fs')
|
||||
|
||||
const main = async () => {
|
||||
const path = core.getInput('path')
|
||||
const content = await fs.readFile(path, 'utf8')
|
||||
core.setOutput('content', content)
|
||||
}
|
||||
|
||||
main().catch(err => core.setFailed(err.message))
|
||||
Reference in New Issue
Block a user