bennettp123 / github-pulumi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

setup-pulumi

Github Action. Starts Pulumi in CI environment. See workflow examples here

Usage

name: Test

on:
  push:
    branches:
      - master

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: Install Pulumi CLI
      uses: pulumi/action-install-pulumi-cli@releases/v1

    - uses: JakeGinnivan/github-pulumi@master
      with:
        stack: dev
        args: up
        root: example
        github-token: ${{ secrets.GITHUB_TOKEN }}
        comment-on-pr: true
        update-existing-comment: true
      env:
        PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}

Args

  • update-existing-comment - default: true, will update the preview comment if it exists, otherwise it will hide the old comment
  • pulumi-cli - default: pulumi, custom cli command (ie node pulumi.js)

About

License:MIT License


Languages

Language:TypeScript 96.4%Language:JavaScript 3.6%