Skip to content

Commit

Permalink
workaround for config file
Browse files Browse the repository at this point in the history
Signed-off-by: jparisu <[email protected]>
  • Loading branch information
jparisu committed May 16, 2023
1 parent 15ee12e commit 4a94844
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion ubuntu/markdown_linter/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,25 @@ runs:
echo "Files to check: ${MODIFIED_FILES}"
shell: bash

# TODO remove
# This file is required due to a bug in markdownlint that do not allow to use a config file
- name: Add config path file
run: |
cd src
echo "style 'markdownlint_linter.rb'" > .mdlrc
ls
cat .mdlrc
cat ../markdownlint_linter.rb
shell: bash

- name: Check style
run: |
cd src
echo "################################################################################################"
echo "################################### MARKDOWN LINTER RESULTS ####################################"
mdl --config markdownlint_linter.rb ${MODIFIED_FILES}
mdl --config ../markdownlint_linter.rb ${MODIFIED_FILES}
echo "############################### MARKDOWN LINTER CHECK SUCCESSFUL ###############################"
echo "################################################################################################"
Expand Down

0 comments on commit 4a94844

Please sign in to comment.