Skip to content

fish-shop/install-plugin-manager

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

fish

fish-shop/install-plugin-manager

OpenSSF Scorecard Tests Issues Dependabot License fish

A GitHub action for installing a fish shell plugin manager.


Prerequisites

This action requires fish shell. You can install it using the fish-shop/install-fish-shell action.

Usage

Add a suitable uses step to your GitHub workflow and specify the plugin manager to be installed by providing a value for the plugin-manager input as shown below:

- name: Install Fisher plugin manager
  uses: fish-shop/install-plugin-manager@v2
  with:
    plugin-manager: fisher

Supported plugin managers

The following table lists the supported plugin managers and the corresponding plugin-manager input value to use in your workflow:

Plugin manager plugin-manager value
Fisher fisher
Oh My Fish oh-my-fish
plug.fish plug.fish1

Managing plugins

After installing one of the supported plugin managers listed above, you may interact with it directly in subsequent steps of your workflow to install, remove, and manage plugins as desired.

For example, to install the Pond plugin using Fisher:

- name: Install Pond plugin with Fisher
  run: fisher install marcransome/pond
  shell: fish {0}

Refer to the official documentation for the specific plugin manager being used for additional information.

Action versions

Use one of the following patterns when specifying the version reference for this action in your workflow (i.e. the {ref} value in uses: fish-shop/install-plugin-manager@{ref}):

Pattern Example Description
vX v2 the latest v2.* release including non-breaking changes and bug fixes
vX.Y v2.1 the latest v2.1.* release including bug fixes
vX.Y.Z v2.1.0 the v2.1.0 release only

Tip

The recommended pattern is vX (e.g. v2). This will ensure that the version of the action used in your workflow includes the latest non-breaking changes and bug fixes, and guarantees compatibility with previous versions of that major release number.

Using a main branch reference in your workflow is not recommended as this branch may include breaking changes intended for the next major release.

Other GitHub actions

A number of related composite actions are also available from the fish-shop 🐟. Check them out:

Acknowledgements

License

fish-shop/install-plugin-manager is provided under the terms of the MIT License.

Contact

Email me at [email protected] or create an issue.

Footnotes

  1. plug.fish support was removed in v2.0.0 due to functional changes made in recent versions of this plugin manager.