diff --git a/README.md b/README.md index 7ecbae1..90e75af 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,25 @@ steps: debug: true ``` +`Use the "exec" type` +```yaml +kind: pipeline +type: exec + +steps: +... + +- name: notification + environment: # Using environment to pass parameters + PLUGIN_TOKEN: + from_secret: dingtalk_token + PLUGIN_TYPE: markdown + PLUGIN_DEBUG: false + PLUGIN_TPL: /data/drone/dingtalk/tpls/markdown.tpl # The actual location (absolute path) of the tpl. + commands: + - /data/drone/dingtalk/dingtalk-message # Location of the "dingtalk-message" file (absolute path) +``` + ### Plugin Parameter Reference `token`(required) diff --git a/README_ZH.md b/README_ZH.md index 2d1adb4..8400cde 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -40,6 +40,25 @@ steps: debug: true ``` +`命令行版本` +```yaml +kind: pipeline +type: exec + +steps: +... + +- name: 通知 + environment: # 使用 environment 传递参数 + PLUGIN_TOKEN: + from_secret: dingtalk_token + PLUGIN_TYPE: markdown + PLUGIN_DEBUG: false + PLUGIN_TPL: /data/drone/dingtalk/tpls/markdown.tpl # tpl 的实际位置(绝对路径) + commands: + - /data/drone/dingtalk/dingtalk-message # dingtalk-message 文件的位置(绝对路径) +``` + ### 插件参数 `token`(必须)