Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# PostgresTools GitHub Action

This is a simple action that will install [PostgresTools](https://github.com/supabase-community/postgres_lsp) on your runner. It will install the appropriate binary for your machine.

It has a single input: `version: latest | <semver>`.
Use `latest` if you want to use the latest available version in your runner.
Use a specific tag, such as `0.2.0`, if you want to use a specific version.

Whatever version is used will be output as `outputs.installed-version`.

## Example Usage

```yaml
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: supabase-community/pglt-cli-action@1
with:
version: 0.2.0
- run: postgrestools check --skip-db test.sql
```
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: PostgresTools Cli Action
description: Setup PostgresTools on Github Actions Runners
description: Setup PostgresTools on Github Action Runners
author: Supabase-Community
inputs:
version:
Expand Down
Loading