Skip to content

_BOOT_K2G: fix line block directive #38

_BOOT_K2G: fix line block directive

_BOOT_K2G: fix line block directive #38

Workflow file for this run

---
name: "rstcheck"
on:
pull_request:
branches: [master]
paths:
- 'source/**'
defaults:
run:
shell: bash
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
container:
image: ghcr.io/texasinstruments/processor-sdk-doc:latest
options: --entrypoint /bin/bash
permissions:
contents: read
issues: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Update refs and settings
run: |
git config --global --add safe.directory "$PWD"
git switch -C pr
git fetch --no-tags --depth=1 origin master
git switch master
- name: Run rstcheck
run: |
# Run the test
bin/delta.sh -a master -b pr -- rstcheck -r source/
if [ "$(wc -l < _new-warn.log)" -gt "0" ]; then
echo "New warnings found with rstcheck:"
echo '```text'
cat _new-warn.log
echo '```'
else
echo "No new warnings found with rstcheck"
fi >> "$GITHUB_STEP_SUMMARY"
# Prepare the results
mkdir -p ./results
echo "${{ github.event.number }}" > ./results/id
cp "$GITHUB_STEP_SUMMARY" ./results/summary
echo "$(wc -l < _new-warn.log)" > ./results/problem-count
- name: Save results
uses: actions/upload-artifact@v4
with:
name: rstcheck
path: results/