Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mise-action cannot upgrade mise #165

Open
bhollis opened this issue Jan 7, 2025 · 0 comments
Open

mise-action cannot upgrade mise #165

bhollis opened this issue Jan 7, 2025 · 0 comments

Comments

@bhollis
Copy link

bhollis commented Jan 7, 2025

I expect that if I set version in this action, that's the version that will be installed. Instead, as long as there is any file in ~/.local/share/mise/bin/mise, this action does nothing:

Run jdx/mise-action@v2
  with:
    install: false
    cache: false
    version: 2025.1.1
    log_level: debug
    cache_save: true
    cache_key_prefix: mise-v0
    experimental: false
Setting env vars
  Setting MISE_LOG_LEVEL=debug
  Setting MISE_TRUSTED_CONFIG_PATHS=/home/penguin/actions-runner/_work/stately/stately
  Setting MISE_YES=1
  Adding /home/penguin/.local/share/mise/shims to PATH
Running mise --version
  /home/penguin/.local/share/mise/bin/mise --version
  2024.10.4 linux-x64 (6c21c0a 2024-10-14)

In this case I wanted 2025.1.1 but I have 2024.10.4 installed. I would need to manually uninstall in order to get a different version. It's clear to see why this happens - setupMise only installs if the binary is missing. This probably works fine for ephemeral GitHub runners that start anew every time, but when using self-hosted runners that keep their state between runs, it means we can't install a specific mise version through this action.

To fix, the action should not only check if the file exists, but check that it is the desired version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant