sticky-bear-14421
07/03/2023, 12:43 PM- uses: pulumi/actions@v3
with:
command: up -c "imageTag=${{ github.sha }}"
stack-name: dev
When I run this in my shell with -c imageTag=164179107ea14fecab2c87ccba42dfee6d826f38 this works, but not from the Action.
Here I get an error:
Validation failed:
{
"command": "Expected \"up\" | \"update\" | \"refresh\" | \"destroy\" | \"preview\", but was string"
}.
Object should match { command: "up" | "update" | "refresh" | "destroy" | "preview"; stackName: string; workDir: string; commentOnPr: boolean; options: { parallel?: number; message?: string; expectNoChanges?: boolean; diff?: boolean; replace?: string[]; target?: string[]; policyPacks?: string[]; policyPackConfigs?: string[]; targetDependents?: boolean; editCommentOnPr?: boolean; userAgent?: "pulumi/actions@v3"; pulumiVersion?: string; }; isPullRequest: boolean; }
with:
command: up
config-map: "imageTag: ${{ github.sha }}"
This will pass an empty config valueconfig-map: "{imageTag: ${{ github.sha }}}"
Or is it like this?limited-rainbow-51650
07/03/2023, 2:16 PMconfig-map
property:
https://github.com/pulumi/actions/blob/f9775fbf93748847db8f2cf9f9ed889f37de416c/.github/workflows/workflow.yml#L76sticky-bear-14421
07/03/2023, 2:17 PM