@socialsflow/trigger-activitypub
v1.0.0
Published
Actionsflow trigger for ActivityPub
Downloads
1
Maintainers
Readme
@actionsflow/activitypub-trigger
This is an Actionsflow trigger for ActivityPub.
Install
npm i @actionsflow/trigger-activitypub
Usage
on:
activitypub:
host: example.org
user: test
Options
host
, required, hostname of source ActivityPub instanceuser
, required, source user account
You can use General Config for Actionsflow Trigger for more customization.
Outputs
This trigger's outputs will be the following object.
An outputs example:
{
"uri": "uniqueId",
"message": "hello world title",
"replyto": "optionalUniqueReplyId"
}
You can use the outputs like this:
jobs:
print:
name: Print
runs-on: ubuntu-latest
steps:
- name: Print Post Outputs
env:
uri: ${{on.activitypub.outputs.uri}}
message: ${{on.activitypub.outputs.message}}
reply: ${{ on.activitypub.outputs.replyto}}
run: |
echo uri: $uri
echo message: $message
echo reply: $reply