Playground GitHub Action

This action allows you to execute the Playground command you need. For more information check the getting started on using the CLI.

Environment Variables

Variable Description
PLAYGROUND_PAT The PLAYGROUND_PAT environment variable contains the Napptive Personal Access Token.

Inputs

Input Description
cmd The playground command to run. This input is required.
environment To specify the environment where the application is going to be deployed. If empty, the application will be deployed in the default environment.
playgroundConfigFile This file allows you to change the target playground installation. Visit documentation for an example.

Example

name: List deployed applications
on: [push]
jobs:
  deploy:
    name: Playground List applications
    runs-on: ubuntu-latest
    steps:
      # Get a copy of the repo.
      - uses: actions/checkout@v2
      # Execute `playground apps `.
      - uses: napptive-actions/playground-github-action@v6.3.0
        env:
          PLAYGROUND_PAT: ${{ secrets.PLAYGROUND_PAT }}
        with:
          cmd: "apps"

For more information, check the playground-github-action in the GitHub marketplace.