【文件属性】:
文件名称:选择随机动作:从多个用户输入中随机选择一个
文件大小:100KB
文件格式:ZIP
更新时间:2021-02-25 09:00:07
typescript random github-actions TypeScript
选择随机动作
日本语版のガイドはです。
从多个用户输入中随机选择一个
目录
用法
参见
基本的
steps :
- uses : ddradar/choose-random-action@v1
id : act # required to reference output
with :
contents : |
foo
bar
baz
weights : |
2
3
5
- name : Echo outputs
run : echo ${{ steps.act.outputs.selected }} # foo: 20%, bar: 30%, baz: 50%
与
name : Send LGTM Image
on :
issue_
【文件预览】:
choose-random-action-master
----.husky()
--------pre-commit(59B)
----package.json(2KB)
----__tests__()
--------choose.test.ts(1KB)
--------input.test.ts(3KB)
--------main.test.ts(2KB)
----.eslintrc.json(601B)
----.github()
--------dependabot.yml(912B)
--------release-drafter.yml(383B)
--------workflows()
----README-ja.md(3KB)
----action.yml(580B)
----LICENSE(1KB)
----jest.config.ts(391B)
----CONTRIBUTING.md(3KB)
----src()
--------input.ts(1KB)
--------choose.ts(997B)
--------main.ts(710B)
--------choice.d.ts(60B)
----tsconfig.json(300B)
----.gitignore(1KB)
----README.md(3KB)
----yarn.lock(203KB)
----.editorconfig(207B)
----CONTRIBUTING-ja.md(5KB)
----.prettierrc.json(96B)