Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cpanato/gptscript-installer
GitHub Action to install gptscript in your workflows
https://github.com/cpanato/gptscript-installer
github-actions gptscript
Last synced: 4 days ago
JSON representation
GitHub Action to install gptscript in your workflows
- Host: GitHub
- URL: https://github.com/cpanato/gptscript-installer
- Owner: cpanato
- License: apache-2.0
- Created: 2024-02-21T09:06:36.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-10-28T13:37:35.000Z (19 days ago)
- Last Synced: 2024-10-28T17:03:01.745Z (19 days ago)
- Topics: github-actions, gptscript
- Homepage:
- Size: 45.9 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gptscript-installer
This action enables you to install [gptscript](https://github.com/gptscript-ai/gptscript) in your GitHub Workflows.
## Usage
This action currently supports GitHub-provided Linux, macOS and Windows runners (self-hosted runners may not work).
Add the following entry to your Github workflow YAML file:
```yaml
uses: cpanato/gptscript-installer@main
with:
gptscript-release: '0.8.2' # optional
```Example using a pinned version:
```yaml
jobs:
test_gptscript_action:
runs-on: ubuntu-latestpermissions: {}
name: Install gptscript and test presence in path
steps:
- name: Install gptscript
uses: cpanato/gptscript-installer@main
with:
gptscript-release: '0.8.2'
- name: Check install!
run: gptscript --version
```Example using the default version:
```yaml
jobs:
test_gptscript_action:
runs-on: ubuntu-latestpermissions: {}
name: Install gptscript and test presence in path
steps:
- name: Install gptscript
uses: cpanato/gptscript-installer@main
- name: Check install!
run: gptscript --version
```### Optional Inputs
The following optional inputs:
| Input | Description |
| --- | --- |
| `gptscript-release` | `gptscript` version to use instead of the default. |
| `install-dir` | directory to place the `gptscript` binary into instead of the default (`$HOME/.gptscript`). |
| `use-sudo` | set to `true` if `install-dir` location requires sudo privs. Defaults to false. |