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

NameDescriptionRequiredDefault
workspace-urlAlpacon workspace URLYes
api-tokenAlpacon API tokenYes
commandAlpacon 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

See also

Resources