Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/aws-service-sanity-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Main Branch Checks
permissions:
contents: read

on:
push:
branches-ignore:
- 'main'
- 'docs'

jobs:
verify-documentation-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Verify documentation files and links
# check if the files exists in the repository. The file list is in utils/doc-links.txt.
run: |
missing=0
while read -r file || [ -n "$file" ]; do
if [ ! -f "$file" ]; then
if [ $missing -eq 0 ]; then
echo "❌ Missing files referenced in AWS documentation:"
missing=$((missing + 1))
fi
echo " - $file"
fi
done < utils/ci-aws-doc-links.txt

if [ $missing -ge 1 ]; then
echo "Instructions:"
echo " The above files are required for AWS services or documentations."
echo " Restore missing files or update documentation before merge."
echo " Refer to team wiki "AWS Service and Documentation Links" for details. "
exit 1
else
echo "✅ All documentation-referenced files exist"
fi
83 changes: 0 additions & 83 deletions samples/pubsub.md

This file was deleted.

183 changes: 0 additions & 183 deletions samples/pubsub.py

This file was deleted.

1 change: 1 addition & 0 deletions utils/ci-aws-doc-links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
samples/mqtt/mqtt5_x509.py
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a short description to what this file is in case someone finds it here. It'd also be nice if we can add the cross-link to the AWS page/script/whatever that's accessing the listed file in case we expand this later to include things like greengrass etc...