Actionsflow trigger example
npm install @actionsflow/trigger-example@actionsflow/trigger-exampleThis is an Actionsflow example trigger.
``bash`
npm i @actionsflow/trigger-example
`yaml`
on:
example:
param1: value1
- param1, optional, describe your param
> You can use General Config for Actionsflow Trigger for more customization.
This trigger's outputs will be the following object.
An outputs example:
`json`
{
"id": "uniqueId",
"title": "hello world title"
}
You can use the outputs like this:
`yaml``
on:
example:
param1: value1
jobs:
print:
name: Print
runs-on: ubuntu-latest
steps:
- name: Print Outputs
env:
title: ${{ on.example.outputs.title }}
id: ${{ on.example.outputs.id }}
run: |
echo "title: $title"
echo "id: $id"