- Introduced a new SFTP test workflow in `test-sftp.yaml` to list remote files using SFTP protocol. - Updated `registers.yaml` to include the new SFTP test workflow.
23 lines
452 B
YAML
23 lines
452 B
YAML
name: SFTP Test
|
|
scripts:
|
|
- script: remote-fs.js
|
|
config:
|
|
protocol: sftp
|
|
action: list
|
|
host: localhost
|
|
path: /Users/nsrb/
|
|
username: nsrb
|
|
port: 22
|
|
password: JKLjkl
|
|
- script: jsonata.js
|
|
config:
|
|
expression: '{"message": $join(data.entries.name, "\n")}'
|
|
- script: ntfy.js
|
|
config:
|
|
url: $VAR_ntfy_channel
|
|
fingerprint: "false"
|
|
triggers:
|
|
- type: HTTP
|
|
method: POST
|
|
path: /new
|