Skip to content

Cannot deploy if an environment variable contains a comma #425

@Kliton

Description

@Kliton

TL;DR

Commas in environment variables brings to error: google-github-actions/deploy-cloudrun failed with: failed to read file '.env': failed to parse KEY=VALUE pair "example": missing "="

Expected behavior

Escape commas

Observed behavior

Cannot deploy

Action YAML

- name: Deploy to Cloud Run
        id: deploy_cloud_run
        uses: google-github-actions/[email protected]
        with:
          service: ${{ env.SERVICE }}
          image: gcr.io/${{ env.PROJECT_ID }}/${{ env.SERVICE }}:${{  github.sha }}
          region: ${{ env.REGION }}
          port: ${{ env.APP_PORT }}
          env_vars_file: .env

Log output

`google-github-actions/deploy-cloudrun failed with: failed to read file '.env': failed to parse KEY=VALUE pair "example": missing "="`

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions