Swale pull

swaleio/swale-pull

Category: Data transfer Latest version 1.3.0 · 2026-11-24 View versions

Swale pull

Pulls the content of a Swale repository into the dest path you supply. Point dest at the mounted workspace (e.g. ${{env.WORKFLOW_STORAGE}}/data) so later tasks in the run can read it, or at any other container-local path. dest is created, with any missing parent folders, if it does not exist yet; a dest that is an existing file is refused.

target names what to pull, in the CLI's own form — <project>/<repository>[:<tag>]. The tag selects the version and is part of the target rather than a separate input; omit it and the latest is pulled.

Authentication uses account and token, delivered to the CLI as SWALE_ACCOUNT_NAME and SWALE_ACCOUNT_TOKEN. Pass token as a secret so it never appears in the container's argv, pod spec, or run logs.

Inputs

Input Required Default Description
target yes — Repository to pull, as <project>/<repository>[:<tag>].
dest yes — Absolute container path to write into, created if missing (e.g. ${{env.WORKFLOW_STORAGE}}/data).
account yes — Swale account name; delivered as SWALE_ACCOUNT_NAME.
token yes — Swale access token (pass a secret); delivered as SWALE_ACCOUNT_TOKEN.

A pull fetches the whole repository at the given tag; there is no way to restrict it to a subpath.

Because the workspace is shared across concurrent tasks, give parallel pulls distinct dest paths so they don't overwrite each other.

Compute

CPU. Data movement only — no GPU is needed, and scheduling it on a GPU compute type wastes money.

Example

name: Swale pull example
compute_type: cpu-4
entry_point: main

blocks:
  main:
    tasks:
      fetch_data:
        name: Fetch data
        uses: swaleio/swale-pull
        args:
          target: acme/datasets:v3
          dest: ${{env.WORKFLOW_STORAGE}}/data
          account: acme
          token: ${{secrets.swale_token}}

Downstream tasks read the pulled files from ${{env.WORKFLOW_STORAGE}}/data.


For the workflow syntax these examples use, see the workflow definition reference in the Swale documentation.

Licensed under the MIT License.