@actionsflow/trigger-example_for_js 中文文档教程

发布于 3年前 浏览 12 项目主页 更新于 3年前

actionsflow-trigger-example_for_js

这是一个 Actionsflow 示例触发器。

Install

npm i @actionsflow/trigger-example_for_js

Usage

on:
  example_for_js:
    param1: value1

Options

  • param1, optional, describe your param

您可以使用Actionsflow 触发器的常规配置 进行更多自定义。

Outputs

此触发器的输出将是以下对象。

输出示例:

{
  "id": "uniqueId",
  "title": "hello world title"
}

您可以像这样使用输出:

on:
  example_for_js:
    param1: value1
jobs:
  print:
    name: Print
    runs-on: ubuntu-latest
    steps:
      - name: Print Outputs
        env:
          title: ${{ on.example_for_js.outputs.title }}
          id: ${{ on.example_for_js.outputs.id }}
        run: |
          echo "title: $title"
          echo "id: $id"

actionsflow-trigger-example_for_js

This is an Actionsflow example trigger.

Install

npm i @actionsflow/trigger-example_for_js

Usage

on:
  example_for_js:
    param1: value1

Options

  • param1, optional, describe your param

You can use General Config for Actionsflow Trigger for more customization.

Outputs

This trigger's outputs will be the following object.

An outputs example:

{
  "id": "uniqueId",
  "title": "hello world title"
}

You can use the outputs like this:

on:
  example_for_js:
    param1: value1
jobs:
  print:
    name: Print
    runs-on: ubuntu-latest
    steps:
      - name: Print Outputs
        env:
          title: ${{ on.example_for_js.outputs.title }}
          id: ${{ on.example_for_js.outputs.id }}
        run: |
          echo "title: $title"
          echo "id: $id"
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文