-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
de070f5
commit 3a1d976
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |