【文件属性】:
文件名称:ci-image-name
文件大小:224KB
文件格式:ZIP
更新时间:2021-04-01 05:05:23
JavaScript
创建一个JavaScript动作
主码
安装依赖项
npm install
运行测试 :check_mark:
$ npm test
PASS ./index.test.js
✓ throws invalid number (3ms)
✓ wait 500 ms (504ms)
✓ test runs (95ms)
...
更改action.yml
action.yml定义您的操作的输入和输出。
使用您的动作的名称,描述,输入和输出来更新action.yml。
请参阅说明
更改密码
大多数工具包和CI / CD操作都涉及异步操作,因此该操作在异步功能中运行。
const core = require ( '@actions/core' ) ;
...
async function run ( ) {
try {
...
}
catch ( error ) {
【文件预览】:
ci-image-name-main
----.eslintrc.json(325B)
----.gitattributes(38B)
----.github()
--------dependabot.yml(276B)
--------workflows()
----action.yml(570B)
----index.test.js(446B)
----LICENSE(1KB)
----README.md(2KB)
----dist()
--------sourcemap-register.js(39KB)
--------index.js.map(244KB)
--------index.js(205KB)
--------licenses.txt(29KB)
----.gitignore(954B)
----CODEOWNERS(27B)
----index.js(537B)
----.eslintignore(6B)
----package-lock.json(447KB)
----package.json(885B)