bglug.it/.gitea/workflows/unicode_check.yaml
paspo 261b1604a1
All checks were successful
Check for disallowed chars / unicode-check (pull_request) Successful in 8m13s
test 22
2024-08-10 11:49:08 +02:00

47 lines
1.5 KiB
YAML

---
name: Check for disallowed chars
on:
pull_request:
jobs:
unicode-check:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: vai
uses: docker://ghcr.io/igorshubovych/markdownlint-cli
with:
entrypoint: /bin/sh
args: -c 'apk -U add git bash ; bash .gitea/workflows/markdownlint_pr.sh ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}'
# - name: Getting changed files
# 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