-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
32 lines (31 loc) · 1.04 KB
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Install ODBC drivers for mssql
description: Install ODBC drivers for mssql
branding:
icon: 'database'
color: 'green'
inputs:
ODBC_VERSION:
description: 'ODBC version to install (18 or 17 validated)'
default: "18"
DISTRO:
description: 'Distribution (from DOCS_URL)'
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)'
runs:
using: composite
steps:
- run: |
sudo dpkg --configure -a && true
pip install requests
python ${{ github.action_path }}/extract_instruction.py | bash
env:
DISTRO: ${{ inputs.DISTRO }}
DOCS_URL: ${{ inputs.DOCS_URL }}
REMOVE_EXITS: ${{ inputs.REMOVE_EXITS }}
ODBC_VERSION: ${{ inputs.ODBC_VERSION }}
shell: bash