https://github.com/actionsflow/actionsflow-trigger-example_for_js
Actonsflow trigger example for js
https://github.com/actionsflow/actionsflow-trigger-example_for_js
actionsflow
Last synced: 12 months ago
JSON representation
Actonsflow trigger example for js
- Host: GitHub
- URL: https://github.com/actionsflow/actionsflow-trigger-example_for_js
- Owner: actionsflow
- Created: 2020-09-29T22:34:30.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2020-11-10T05:20:18.000Z (over 5 years ago)
- Last Synced: 2025-06-23T17:49:55.393Z (about 1 year ago)
- Topics: actionsflow
- Language: JavaScript
- Homepage:
- Size: 214 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `@actionsflow/trigger-example_for_js`
This is an [Actionsflow](https://github.com/actionsflow/actionsflow) example trigger.
## Install
```bash
npm i @actionsflow/trigger-example_for_js
```
## Usage
```yaml
on:
example_for_js:
param1: value1
```
## Options
- `param1`, optional, describe your param
> You can use [General Config for Actionsflow Trigger](https://actionsflow.github.io/docs/workflow/#ontriggerconfig) for more customization.
## Outputs
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_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"
```