alpacon-common-action
Run any Alpacon CLI command in your workflow. Use this action for operations not covered by the specialized actions (websh, cp), such as listing servers, viewing events, or managing resources.
Inputs
| Name | Description | Required | Default |
|---|---|---|---|
workspace-url | Alpacon workspace URL | Yes | |
api-token | Alpacon API token | Yes | |
command | Alpacon CLI command to execute (without alpacon prefix) | Yes |
Usage
List servers
- name: List all servers
uses: alpacax/alpacon-common-action@v1
with:
workspace-url: ${{ secrets.ALPACON_WORKSPACE_URL }}
api-token: ${{ secrets.ALPACON_API_TOKEN }}
command: "server ls"
List groups
- name: List groups
uses: alpacax/alpacon-common-action@v1
with:
workspace-url: ${{ secrets.ALPACON_WORKSPACE_URL }}
api-token: ${{ secrets.ALPACON_API_TOKEN }}
command: "group ls"
View recent events
- name: View recent events
uses: alpacax/alpacon-common-action@v1
with:
workspace-url: ${{ secrets.ALPACON_WORKSPACE_URL }}
api-token: ${{ secrets.ALPACON_API_TOKEN }}
command: "event --tail=5"
Notes
- Requires
alpacon-setup-actionto run first - The
commandinput is appended toalpacon—do not include thealpaconprefix - For remote command execution, prefer
alpacon-websh-action - For file transfers, prefer
alpacon-cp-action