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

Enhance Install Script with Version Check and Force Install Option #2575

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

james-crowley
Copy link

This PR introduces improvements to the Act install script by adding logic to check if Act is already installed. If the installed version matches the requested tag, the script will skip the installation process. This enhancement is particularly useful in CI environments where Act might already be preinstalled, reducing redundant downloads and saving bandwidth.

Key Changes:

  • Version Check Logic: The script now checks if Act is already installed and whether its version matches the requested tag. If a match is found, the installation is skipped.

  • Force Install Flag -f: A new CLI flag -f has been added to bypass the version check. This ensures flexibility when users explicitly want to reinstall or downgrade Act.

  • Upgrade & Downgrade: The script only skips installation if the installed version matches the requested tag. It doesn’t prevent downgrades or upgrades to different versions, offering control to the end user.

@james-crowley james-crowley requested a review from a team as a code owner December 16, 2024 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant