owenvoke / gha-interactions
一个用于与 GitHub Actions 交互的辅助方法包
v1.0.0
2021-02-08 18:08 UTC
Requires
- php: ^7.4 || ^8.0
Requires (Dev)
- pestphp/pest: ^1.0
- phpstan/phpstan: ^0.12.71
- symfony/var-dumper: ^5.1
README
一个用于在控制台命令中与 GitHub Actions 交互的辅助方法包
安装
通过 Composer
$ composer require owenvoke/gha-interactions
使用方法
在您的 Laravel Zero 命令中
<?php namespace App\Commands; use LaravelZero\Framework\Commands\Command; use OwenVoke\GHAInteractions\Concerns\InteractsWithGitHubActionsAnnotations; class MyCommand extends Command { use InteractsWithGitHubActionsAnnotations; protected $signature = 'test'; public function handle() { // Add a debug message to the GitHub Actions log output $this->addGitHubActionsDebugMessage('Debug'); // Add an error message to the GitHub Actions log output $this->addGitHubActionsErrorMessage('Error!'); // Add a warning message to the GitHub Actions log output $this->addGitHubActionsWarningMessage('Warning!'); // Add a group of messages to the GitHub Actions log output $this->addGitHubActionsGroupedLogMessage('Group Title', ['Message 1', 'Message 2']); // Add an output parameter to the GitHub Actions log output $this->addGitHubActionsOutputParameter('output_param', 'output_value'); } }
变更日志
请参阅 CHANGELOG 了解最近的变化。
测试
$ composer test
贡献
请参阅 CONTRIBUTING 了解详细信息。
安全性
如果您发现任何安全问题,请通过电子邮件 security@voke.dev 而不是使用问题跟踪器来报告。
鸣谢
许可证
MIT 许可证 (MIT)。请参阅 许可证文件 了解更多信息。
赠品
您可以自由使用此包,但如果它进入您的生产环境,您需要为世界买一棵树。
现在众所周知,解决气候危机并保持气温不超过1.5C的最好工具之一是种树。如果您支持此包并为 Treeware 森林做出贡献,您将为当地家庭创造就业并恢复野生动物栖息地。
您可以在 这里 购买树木。
在 treeware.earth 上了解更多关于 Treeware 的信息。