-
Notifications
You must be signed in to change notification settings - Fork 224
Add CI to validate required files #661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
26a7171
9eabcb0
b0351ba
8d55df6
f8cf657
33b778b
f1d3ea3
3e81b89
a32134f
d76f154
569ed8a
f5b1320
bfe878e
38d71d0
c12a550
98236ee
c165a3c
0e50614
131fd60
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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 | ||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| samples/mqtt/mqtt5_x509.py | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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... |
||
| samples/greengrass/basic_discovery.py | ||
Uh oh!
There was an error while loading. Please reload this page.