From ac9dbe3b6a5b7c898f6be18d2d86cc49f821ac46 Mon Sep 17 00:00:00 2001 From: Alexander Kiranov Date: Sat, 25 Nov 2023 12:50:26 +0200 Subject: [PATCH] markdownlint github workflow fixed to sudo --- .github/workflows/markdownlint.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/markdownlint.yml b/.github/workflows/markdownlint.yml index 403e1ad..d150402 100644 --- a/.github/workflows/markdownlint.yml +++ b/.github/workflows/markdownlint.yml @@ -12,15 +12,15 @@ jobs: # source: https://github.com/nodesource/distributions#debian-and-ubuntu-based-distributions - name: add node.js deb source run: | - apt-get install -y ca-certificates curl gnupg && mkdir -p /etc/apt/keyrings \ - && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \ + sudo apt-get install -y ca-certificates curl gnupg && sudo mkdir -p /etc/apt/keyrings \ + && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \ && NODE_MAJOR=20 \ - && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list + && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list - name: install node.js - run: apt-get update && apt-get install nodejs -y + run: sudo apt-get update && sudo apt-get install nodejs -y - name: install markdownlint-cli - run: npm install -g markdownlint-cli + run: sudo npm install -g markdownlint-cli - name: validate all markdown files run: cd "${{ github.workspace }}" && markdownlint -p .gitignore .