Skip to content

Setup pscale

Actions
Installs the PlanetScale CLI
v1
Latest
Verified creator
Star (22)

Verified

GitHub has manually verified the creator of the action as an official partner organization. For more info see About badges in GitHub Marketplace.

PlanetScale CLI for GitHub Actions

Use this Action to install pscale on your actions runner. Works with Linux, Mac and Windows runners.

- name: Setup pscale
  uses: planetscale/setup-pscale-action@v1
- name: Use pscale
  env:
    PLANETSCALE_SERVICE_TOKEN_ID: ${{ secrets.PLANETSCALE_SERVICE_TOKEN_ID }}
    PLANETSCALE_SERVICE_TOKEN: ${{ secrets.PLANETSCALE_SERVICE_TOKEN }}
  run: |
    pscale deploy-request list my-db --org my-org

Be sure to setup a service token with the proper permissions and add it to your repositories secrets.

Example with version pinned:

Setting the version is optional. When omitted, the action will download the latest version. See full list of releases.

- name: Setup pscale
  uses: planetscale/setup-pscale-action@v1
  with:
    version: v0.245.0

Examples

See our PlanetScale + GitHub Actions doc for ideas on how to use pscale in your Actions Workflows.

Development

Install the dependencies

$ npm install

Build the typescript and package it for distribution

$ npm run build && npm run package

License

The action is available as open source under the terms of the Apache 2.0 License.

Setup pscale is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Installs the PlanetScale CLI
v1
Latest

Verified

GitHub has manually verified the creator of the action as an official partner organization. For more info see About badges in GitHub Marketplace.

Setup pscale is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.