name: Upload to Screeps description: This action uploads code to the Screeps server. inputs: protocol: description: 'The protocol to use (default: https).' required: false default: https hostname: description: 'The hostname of the Screeps server (default: screeps.com).' required: false default: screeps.com port: description: 'The port to use (default: 443).' required: false default: '443' path: description: The path for the API. required: false default: / token: description: Authentication token for Screeps. required: true username: description: Username for Screeps account. Used if no token is provided. required: false password: description: Password for Screeps account. Used if no token is provided. required: false prefix: description: Directory prefix for file paths. required: false pattern: description: 'Glob pattern to match files (default: *.js).' required: false default: '*.js' branch: description: 'Branch in Screeps to which the code will be uploaded (default: default).' required: false default: default git-replace: description: Allows for the overwrite of the "{{gitRef}}", "{{gitHash}}" and "{{deployTime}}" values in the file matching the file pattern. The file pattern will be combined with the prefix. required: false shard: description: The Screeps shard to monitor (e.g. shard0, shard1). Defaults to shard0 on the official server. required: false monitor: description: Number of game ticks to monitor the Screeps console after deploying (0 = disabled). required: false default: '0' log_to_file: description: 'Buffer stdout to an artifact file instead of streaming live (default: false). Errors/warnings always stream live.' required: false default: 'false' on_traceback: description: 'Action on JS traceback detection: ignore, warn, or fail (default: fail).' required: false default: fail on_error_log: description: 'Action on Screeps error-console output: ignore, warn, or fail (default: warn).' required: false default: warn on_warning_log: description: 'Action on console.warn output: ignore, warn, or fail (default: ignore).' required: false default: ignore monitor_interval: description: 'Print a progress update every N ticks when log_to_file=true (default: 10).' required: false default: '10' outputs: saw_traceback: description: true if a JS traceback was detected during monitoring. saw_error_log: description: true if the Screeps error console had output during monitoring. saw_warning_log: description: true if console.warn output was detected during monitoring. runs: using: node20 main: dist/index.js