jdx/mise-action

Export environment variables from config

reitzig opened this issue · 2 comments

I want make use of setting environment variables through mise, attempting to replace direnv in simple cases at least.

Unfortunately, the action does not export the variables included in the configuration:

Example config:
image

Example workflow:
image
The build subsequently fails because changie doesn't find its config.

Workaround:

    - uses: jdx/mise-action@v2
      with:
        install: false # we only need env

    - name: Load mise env
      run: |
          mise env -s bash \
              | grep -v 'export PATH=' \
              | cut -d' ' -f2 \
              >> "$GITHUB_ENV"