Skip to content

Commit

Permalink
markdownlint github workflow fixed to sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
xHasKx committed Nov 25, 2023
1 parent 3c0fa16 commit ac9dbe3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/markdownlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .

0 comments on commit ac9dbe3

Please sign in to comment.