I'm trying to use environment variables in my `pre...
# ask-community
g
I'm trying to use environment variables in my
prefect.yaml
and I'm getting an error. Here's the snippet
Copy code
deployments:
# Production deployments deploy with '*-prod'
- name: create-picks-prod
  version: {{ $NEW_VERSION }}
  tags: [production]
  description: 'Creates the weekly picks page'
  schedule:
    cron: 0 6 * * 3
    timezone: US/Pacific
  entrypoint: create_picks.py:create_picks
  work_pool:
    name: tgfp-jobs
  pull:
  - prefect.deployments.steps.set_working_directory: *path-prod
j
it needs to be
version: "{{ $NEW_VERSION }}"
🙌 1
✅ 1
g
Oh, thanks!