charts/timesketch Lock tag by release version, simplify ingress for non GKE setups, remove roll and config override, allow multiple instances to run, README updates #157
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Markdown Linter' | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- '**.md' | |
permissions: {} | |
jobs: | |
markdown-linter: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Install markdownlint | |
run: npm install -g [email protected] | |
- name: Checkout project | |
uses: actions/checkout@v3 | |
- name: Execute markdownlint | |
env: | |
DIFF_URL: "${{github.event.pull_request.diff_url}}" | |
TEMP_FILE: "${{runner.temp}}/pr-${{github.event.number}}.diff" | |
run: | | |
curl -Lkso $TEMP_FILE $DIFF_URL | |
files_changed="$(sed -nr 's/[\-\+]{3} [ab]\/(.*)/\1/p' $TEMP_FILE | sort | uniq)" | |
md_files="$(echo "$files_changed" | grep -o ".*\.md$" | sort | uniq || true)" | |
exit_code=0 | |
markdownlint ${md_files[@]} || exit_code=$? | |
if [[ $exit_code -ne 0 ]]; then | |
echo "::error:: Please review linter messages" | |
exit "$exit_code" | |
fi |