Skip to content

working_directory not considered when exporting environment variables #267

Description

@arthurcogo

When exporting environment variables, the working_directory is not considered. This means it only exports environment variables defined at the root. I have environment-specific variables defined in sub-directories which are not currently exported, when I would expect them to.

      - uses: jdx/mise-action@v3.2.0
        with:
          install: false
          working_directory: ${{ matrix.deployment.working-directory }}
# The above does not set any environment variables defined in the working-directory. Instead I have to do
      - name: Set env vars
        working-directory: ${{ matrix.deployment.working-directory }}
        run: |
          mise env -D >> "$GITHUB_ENV"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions