From 8ff900a329057b17e01858864e6b65f18b3edda6 Mon Sep 17 00:00:00 2001 From: Julian Date: Thu, 20 Mar 2025 18:43:59 +0100 Subject: [PATCH 1/2] last ones --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index a5cdd6f..21747f4 100644 --- a/action.yml +++ b/action.yml @@ -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: From ac28a9e7697b7ac11395c2d08aaa8d3916d7320f Mon Sep 17 00:00:00 2001 From: Julian Date: Thu, 20 Mar 2025 18:58:27 +0100 Subject: [PATCH 2/2] add readme --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..7ee8e6e --- /dev/null +++ b/README.md @@ -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 | `. +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 +```