Skip to content

Commit

Permalink
Add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Yarden-zamir committed May 9, 2023
1 parent de070f5 commit 3a1d976
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ inputs:
description: 'ODBC version to install (18 or 17 validated)'
default: "18"
DISTRO:
description: 'Distribution (from learn.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server)'
description: 'Distribution (from DOCS_URL)'
default: Ubuntu
DOCS_URL:
description: 'URL to the docs page to scrape instructions from'
Expand Down
35 changes: 35 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# install-mssql-odbc
Action for installing odbc drivers for mssql exactly according to microsofts instrucitons.

This action runs a python script that scrapes microsofts official instructions per the requested distribution and executes them.
By default we remove "exit\n" cases that are found in the instructions.
```yaml
inputs:
ODBC_VERSION:
description: 'ODBC version to install (18 or 17 validated)'
default: "18"
DISTRO:
description: 'Distribution'
default: Ubuntu
DOCS_URL:
description: 'URL to the docs page to scrape instructions from'
default: "https://raw.githubusercontent.com/MicrosoftDocs/sql-docs/live/docs/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server.md"
REMOVE_EXITS:
default: 'true'
description: 'Remove exit statements from the script (they break the workflow)'
```
Usage examples
```yaml
# minimal
- uses: Yarden-zamir/install-mssql-odbc@main
```
```yaml
# all inputs
- uses: Yarden-zamir/install-mssql-odbc@main
with:
ODBC_VERSION: 17
DISTRO: Alpine
DOCS_URL: https://yarden-zamir.com/alternate-docs-path.md
REMOVE_EXITS: false
```

0 comments on commit 3a1d976

Please sign in to comment.