Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/actions-cool/actions-util
🚀 A util for Actions.
https://github.com/actions-cool/actions-util
actions github-actions util
Last synced: 2 days ago
JSON representation
🚀 A util for Actions.
- Host: GitHub
- URL: https://github.com/actions-cool/actions-util
- Owner: actions-cool
- License: mit
- Created: 2021-02-21T05:54:56.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-18T03:23:27.000Z (9 months ago)
- Last Synced: 2024-11-13T18:16:18.930Z (2 days ago)
- Topics: actions, github-actions, util
- Language: TypeScript
- Homepage:
- Size: 17.6 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Actions Util
🚀 A util for Actions.
[![npm](https://img.shields.io/npm/v/actions-util?style=flat-square&color=orange)](https://www.npmjs.com/package/actions-util)
![](https://img.shields.io/github/actions/workflow/status/actions-cool/actions-util/test.yml?style=flat-square&branch=main)
![](https://img.shields.io/npm/l/actions-util?style=flat-square&color=blue)## 🚀 Usage
```js
const { checkPermission } = require('actions-util');
// or
import { checkPermission } from 'actions-util';checkPermission(require, permission);
```## 🎁 Export
- [checkPermission](#checkPermission) `1.0.0`
- [dealStringToArr](#dealstringtoarr) `1.0.0`
- THANKS `1.1.0`### checkPermission
```js
checkPermission(require, permission);
```#### Input
| Params | Desc | Type | Required | Default |
| -- | -- | -- | -- | -- |
| require | Required permissions | string | ✔ | - |
| permission | Detector's permission | string | ✔ | - |#### Output
`boolean`
### dealStringToArr
```js
dealStringToArr(para);
```#### Input
| Params | Desc | Type | Required | Default |
| -- | -- | -- | -- | -- |
| para | Action yml input like `x1, x2, x3` | string | ✔ | - |#### Output
```js
['x1', 'x2', 'x3']
```## LICENSE
[MIT](./LICENSE)