Analyze Action
After you request action.yml data through axios, it will help you analyze the obtained string and get the action information.
🚀 Usage
const { analyzeActionYml } = require('analyze-action');
import { analyzeActionYml } from 'analyze-action';
analyzeActionYml(data);
🎁 API
analyzeActionYml
analyzeActionYml(data, countOfficial);
Input
Params | Desc | Type | Required | Default |
---|
data | Oobtained string | string | ✔ | - |
countOfficial | Whether to count the official action | boolean | ✖ | true |
Output
{
name: 'Issues Helper',
actions: [
owner: 'actions-cool',
repo: 'issues-helper',
version: 'v2.0.0'
]
}
LICENSE
MIT