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"
When exporting environment variables, the
working_directoryis 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.