Skip to content

pulumi/setup-pulumi

Setup GitHub Action

Deprecation notice

Warning This action has been deprecated.

Please use the pulumi/actions action in installation only mode.

Migrating to pulumi/actions

To migrate, switch to pulumi/actions@v4.

BeforeAfter
- name: Install pulumi
  uses: pulumi/setup-pulumi@v2

- name: Install pulumi
  uses: pulumi/setup-pulumi@v2
  with:
    pulumi-version: 3.3.0
- name: Install pulumi
  uses: pulumi/actions@v4

- name: Install pulumi
  uses: pulumi/actions@v4
  with:
    pulumi-version: 3.3.0

Introduction

This repository contains an action for use with GitHub Actions, which installs a specified version of the pulumi CLI.

pulumi is installed into /home/runner/.pulumi (or equivalent on Windows) and the bin subdirectory is added to the PATH.

Usage

Install the latest version of the Pulumi CLI:

- name: Install Pulumi CLI
  uses: pulumi/setup-pulumi@v2

Install a specific version of the Pulumi CLI:

- name: Install pulumi
  uses: pulumi/setup-pulumi@v2
  with:
    pulumi-version: 3.3.0

Install a version that adheres to a semver range

- name: Install pulumi
  uses: pulumi/setup-pulumi@v2
  with:
    pulumi-version: ^3.0.0

Configuration

The action can be configured with the following arguments:

  • pulumi-version (optional) - The version of the Pulumi CLI to install. Default is latest. Accepts semver style values.