23 lines
955 B
YAML
23 lines
955 B
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
|
|
|
|
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 |