File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -163,8 +163,10 @@ jobs:
163163 # Required for the 'web-app-sql-database' sample which uses 'sqlcmd' to
164164 # initialize and verify the database schema in the local emulator.
165165 run : |
166- curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc
167- curl https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list
166+ if [ ! -f /etc/apt/sources.list.d/mssql-release.list ]; then
167+ curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc
168+ curl https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list
169+ fi
168170 sudo apt-get update
169171 sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18 mssql-tools18
170172 echo "/opt/mssql-tools18/bin" >> $GITHUB_PATH
You can’t perform that action at this time.
0 commit comments