Skip to content

urcomputeringpal/pulumi-preview-pr-label-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Pulumi Preview PR Label Action

Decorate your PR with context from Pulumi Preview output.

See ./action.yml for the full documentation for this action's inputs and outputs.

Example

The following example demonstrates how to use this with pulumi/actions:

name: pulumi-preview
on: [pull_request]
jobs:
    preview:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      issues: write
      pull-requests: write
    steps:
        - uses: actions/checkout@v2
        - uses: pulumi/actions@v4
          id: pulumi-preview
          with:
            work-dir: pulumi
            command: preview
        - uses: urcomputeringpal/pulumi-preview-pr-label-action@v0
          with:
            label-prefix: Production
            pulumi-output: ${{ steps.pulumi-preview.outputs.output }}