Skip to content

Commit 14d8270

Browse files
committed
skip if already exists
1 parent d1e8cd2 commit 14d8270

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/run-samples.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)