Export environment variables from config
reitzig opened this issue · 2 comments
reitzig commented
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 workflow:
The build subsequently fails because changie doesn't find its config.
reitzig commented
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"