Files
speckle-automate-github-action/action.yaml
T
Iain Sproat f761cbf854 tests(integration): mock server validates requests (#130)
* tests(integration): mock server validates requests

* chore(logging): improve error message

* more logging improvements

* fix logging which failed if response was not json

* Use createError method in mock server

* Improve mock server error presentation

* Add speckle_function_command to integration test using github action

* fix broken merge; ours strategy was too agressive

* Resolve 'a sequence was not expected' error message in main.yml

* Tidy up commit to match existing in main

* use tag if available, otherwise commit sha.
2023-06-23 15:58:26 +02:00

34 lines
1.3 KiB
YAML

name: 'Speckle Automate Function Publisher'
description: 'Builds and publishes a Speckle Automate Function to the Speckle Server.'
author: 'Speckle Systems'
branding:
icon: 'upload-cloud'
color: 'blue'
inputs:
speckle_server_url:
description: 'Speckle Automate Server URL.'
required: false
default: 'https://automate.speckle.xyz'
speckle_token:
description: 'Token for authentication to Speckle Automate Server, allowing publishing of Speckle Functions. **The token must be stored in GitHub as an encrypted secret**.'
required: true
speckle_function_path:
description: 'Path to the Speckle Function definition (`specklefunction.yaml`) to be published.'
required: false
default: '.' # root directory of the checked out source code, ${GITHUB_WORKSPACE}
speckle_function_id:
description: 'The unique identifier of the function. Go to automate to generate one.'
required: true
speckle_function_input_schema:
description: 'JSON Schema of the parameters object required by the function.'
required: false
speckle_function_command:
description: 'The command to run to execute the function in a runtime environment.'
required: true
outputs:
version_id:
description: 'The unique identifier of the function version.'
runs:
using: 'node16' #FIXME bump to node18 when available
main: 'dist/action/index.js'