0.0.1 • Published 5 years ago
@actionsflow/trigger-example-for-js v0.0.1
Actionsflow Example trigger
This is an Actionsflow trigger example for js. You can follow this project to start your trigger.
Events
on:
example-for-js:
param1: value1Params
param1, optional,every, optional, fetch interval, the unit is minute, default value is5skip_first, optional, should skip the first items, default value isfalsemax_items_count, optional, the feed items max length, default value isundefined, it will trigger all items
Outputs
This trigger's outputs will be the item of the test results
An outputs example:
{
"id": "uniqueId",
"title": "hello world title",
}You can use the outputs like this:
on:
example-for-js:
max_items_count: 5
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"0.0.1
5 years ago