Environment name not available in job context

It does not appear that the jobs environment is available for reference by expressions. Is there a different way to get to the environment name?

jobs:
  deploy:
    name: "deploy test"
    environment: test
    runs-on: ubuntu-latest
    steps:
      - run: echo "${{ job.environment.name }}"
2 Likes