Migrate from GitHub Action v1 and v2 to newer versions
mainWhen migrating from v1 or v2 to current versions of the Pulumi GitHub Action, note the following breaking changes:
Input Name Changes
Several configuration options have moved from environment variables to explicit action inputs:
PULUMI_ROOT$\rightarrow$work-dirPULUMI_BACKEND_URL$\rightarrow$cloud-urlCOMMENT_ON_PR$\rightarrow$comment-on-prGITHUB_TOKEN$\rightarrow$github-token
Removed Inputs
IS_PR_WORKFLOWhas been removed. The action now automatically detects if a workflow is apull_requestbased on the GitHub Action type.
Native Execution and Dependency Management
The action now runs natively. This means you are responsible for setting up the required environment (e.g., Node.js, Python) and installing dependencies before running Pulumi commands. The action no longer automatically runs npm ci, npm install, pip3 install, or pipenv install.
To ensure your environment is ready, use standard setup actions and manual installation steps in your workflow file.
# Example: Setting up Node.js environment
- uses: actions/setup-node@v1
with:
node-version: 14.x
# Example: Installing Python dependencies manually
- run: pip install -r requirements
working-directory: infra