From 7598c2517af6c11f2d50c488109c24bae8718bf2 Mon Sep 17 00:00:00 2001 From: Omar Al-Jarrah Date: Mon, 23 Oct 2023 20:03:38 +0300 Subject: [PATCH] Update curl command in Pandoc installation The curl command has been optimized in the generate-sdk workflow. The previous configuration used sudo unnecessarily while pulling the Pandoc package. With this change, the package is fetched from the URL first before using sudo for installation. This simplifies the process and avoids potential permissions issues. --- .github/workflows/generate-sdk.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/generate-sdk.yaml b/.github/workflows/generate-sdk.yaml index fb95be8a..e7ef0dc7 100644 --- a/.github/workflows/generate-sdk.yaml +++ b/.github/workflows/generate-sdk.yaml @@ -61,8 +61,8 @@ jobs: - name: Install Pandoc run: | architecture="$(dpkg --print-architecture)" - sudo curl -O -L "https://github.com/jgm/pandoc/releases/download/3.1.8/pandoc-3.1.8-1-$architecture.deb" - dpkg -i *.deb + curl -O -L "https://github.com/jgm/pandoc/releases/download/3.1.8/pandoc-3.1.8-1-$architecture.deb" + sudo dpkg -i *.deb - name: Format docs working-directory: expediagroup/sdk/docsgen/docs run: |