Hello,
Attempting to run my action installs the Upsun CLI, but any command I put in the command: section fails with "Undefined Command"
Here's my workflow file:
---
name: Trigger Platform.sh Snapshot
on: # yamllint disable-line rule:truthy
schedule:
# Run at 5:03 UTC.
- cron: "3 5 * * *"
workflow_dispatch:
jobs:
trigger-psh-snapshot:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: upsun/action-cli@v1
with:
cli_token: ${{ secrets.PLATFORMSH_CLI_TOKEN }}
project_id: ${{ secrets.PLATFORMSH_PROJECT_ID }}
environment_name: main
command: backup:create --yes --wait -v
- name: Notify slack on failure
if: failure()
uses: voxmedia/github-action-slack-notify-build@v2
with:
channel: devops-alerts
status: FAILED
color: danger
env:
SLACK_BOT_TOKEN: '${{ secrets.GHACTION_SLACK_BOT_TOKEN }}'
Based on what I see in your README for this project, I have configured all the necessary parts to run the command.
I'll also note that I get this deprecation warning from GitHub at the end of the run, but that's not the cause of the issue of course.
Warning: Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: upsun/action-cli@v1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026.
Here's the full output of the failing run:
Run upsun/action-cli@v1
with:
cli_token: ***
project_id: ***
environment_name: main
command: backup:create --yes --wait --environment main -v
cli_provider: upsun
Install upsun CLI, version:
Prepare CLI...
No CLI found, download and install it!
Download Installer...
Run Installer...
/usr/bin/bash ./installer.sh
+------------------------------------------------+
| |
| Upsun CLI Installer |
| |
+------------------------------------------------+
Checking environment
[] Your kernel (linux) is supported
[] Your architecture (amd64) is supported
[] Using raw install method
[] cURL is installed
[] No version specified, using latest (5.10.3)
[] Gzip is installed
[] sha1sum is installed
[] /home/runner/.local/bin is in $PATH
Target directories
Binary will be installed in /home/runner/.local/bin
Downloading the Upsun CLI
Downloading https://github.com/upsun/cli/releases/download/v5.10.3/upsun_5.10.3_linux_amd64.tar.gz
Uncompressing archive
Making the binary executable
Installing the binary under /home/runner/.local/bin
+------------------------------------------------+
| |
| Upsun CLI has been installed successfully. |
| |
+------------------------------------------------+
What's next?
To use the CLI, run: upsun
Useful links:
CLI introduction: https://docs.upsun.com/get-started/introduction.html#cli
Thank you for using Upsun!
Run CLI command...
Undefined Command
Hello,
Attempting to run my action installs the Upsun CLI, but any command I put in the
command:section fails with "Undefined Command"Here's my workflow file:
Based on what I see in your README for this project, I have configured all the necessary parts to run the command.
I'll also note that I get this deprecation warning from GitHub at the end of the run, but that's not the cause of the issue of course.
Here's the full output of the failing run: