[PR #2575] [MERGED] Enhance Install Script with Version Check and Force Install Option #2503

Closed
opened 2026-03-01 21:55:44 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/2575
Author: @james-crowley
Created: 12/16/2024
Status: Merged
Merged: 12/25/2024
Merged by: @mergify[bot]

Base: masterHead: master


📝 Commits (3)

  • f6b6fc4 feat: Adding in logic to check if act needs to be downloaded
  • da49696 Merge branch 'master' into master
  • d55c6e4 Merge branch 'master' into master

📊 Changes

1 file changed (+37 additions, -2 deletions)

View changed files

📝 install.sh (+37 -2)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/nektos/act/pull/2575 **Author:** [@james-crowley](https://github.com/james-crowley) **Created:** 12/16/2024 **Status:** ✅ Merged **Merged:** 12/25/2024 **Merged by:** [@mergify[bot]](https://github.com/apps/mergify) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (3) - [`f6b6fc4`](https://github.com/nektos/act/commit/f6b6fc43e63cd8b96774ead8a4ca093787e51bfc) feat: Adding in logic to check if act needs to be downloaded - [`da49696`](https://github.com/nektos/act/commit/da49696bf01aacdf6591c61e0c6617520619c3cc) Merge branch 'master' into master - [`d55c6e4`](https://github.com/nektos/act/commit/d55c6e4179068002d59a9779d90bbfd8c1c2ffdf) Merge branch 'master' into master ### 📊 Changes **1 file changed** (+37 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `install.sh` (+37 -2) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 21:55:44 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#2503
No description provided.