test 20
All checks were successful
Check for disallowed chars / unicode-check (pull_request) Successful in 2m13s

This commit is contained in:
Paolo Asperti 2024-08-09 21:34:25 +02:00
parent 2ed4bf56bf
commit 2671adbbfd
Signed by: paspo
GPG Key ID: 06D46905D19D5182

View File

@ -14,27 +14,33 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Getting changed files - name: vai
id: file-lister uses: docker://registry.gitlab.com/pipeline-components/markdownlint:latest
shell: bash
run: |
echo "Initial commit: ${{ github.event.pull_request.base.sha }}"
echo "Final commit: ${{ github.event.pull_request.head.sha }}"
echo "File list:"
while read LINE; do
echo $LINE
LINASDASDSAE=$(printf %q "$LINE")
F="$F $(echo "${LINE}"|sed 's/\ /\\ /')"
done < <(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} content/ | grep \.md$)
echo "FILELIST=$F" >> "$GITHUB_OUTPUT"
- name: Markdown Lint
env:
FILELIST: ${{ steps.file-lister.outputs.FILELIST }}
uses: nosborn/github-action-markdown-cli@v3.3.0
with: with:
files: "${{ env.FILELIST }}" entrypoint: /bin/sh
# entrypoint: /bin/sh args: -c 'ls -la ; echo pwd ; pwd'
# args: -c 'set'
config_file: .markdownlint.yaml # - name: Getting changed files
dot: false # id: file-lister
# shell: bash
# run: |
# echo "Initial commit: ${{ github.event.pull_request.base.sha }}"
# echo "Final commit: ${{ github.event.pull_request.head.sha }}"
# echo "File list:"
# while read LINE; do
# echo $LINE
# LINASDASDSAE=$(printf %q "$LINE")
# F="$F $(echo "${LINE}"|sed 's/\ /\\ /')"
# done < <(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} content/ | grep \.md$)
# echo "FILELIST=$F" >> "$GITHUB_OUTPUT"
# - name: Markdown Lint
# env:
# FILELIST: ${{ steps.file-lister.outputs.FILELIST }}
# uses: nosborn/github-action-markdown-cli@v3.3.0
# with:
# files: "${{ env.FILELIST }}"
# # entrypoint: /bin/sh
# # args: -c 'set'
# config_file: .markdownlint.yaml
# dot: false