Files
actions-custom-js/action.yml
T
tom.coursow 69cb849ef0
Test / test (push) Successful in 10s
action.yml aktualisiert
2023-07-27 21:33:01 +02:00

28 lines
1.2 KiB
YAML

#
# To be able to use this action (with Gitea and Act Runner),
# this action.yml file has to be placed in the root of the repository.
# It is also important that a Git TAG is created (for example 'v1')
# Then workflows can use this action like this:
# 'using: https://gitea.coursow.de/Test-Playground/actions-custom-js@v1'
#
# Name and Description of the Action (Like displayed in GitHub Marketplace Overview)
name: 'Print Fibonacci Numbers'
description: 'Prints a sequence of fibonacci numbers'
inputs:
iterations:
description: 'The maximum amount of iterations to produce fibonacci numbers'
required: false
default: 10
outputs:
lastNumber:
description: 'The last fibonacci number printed during the execution of the action'
# value: ... # The value key is not needed (like nedded with composite actions) because the main.js will set the ouput value
runs:
using: 'node16' # Must be 'nodeXX' for a custom js action
main: 'main.js' # The JS File to execute which will handle action processing
# pre: 'setup.js' # Will be executed before the main action execution
# post: 'cleanup.js' # Will be executed after main action execution