Skip to content

Commit

Permalink
CI: check if pipeline READMEs are up to date
Browse files Browse the repository at this point in the history
STONEBLD-2401

Signed-off-by: Adam Cmiel <[email protected]>
  • Loading branch information
chmeliik committed Jul 25, 2024
1 parent c0df9eb commit b0258f0
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/check-readmes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Validate PR - check READMEs
'on':
pull_request:
branches: [main]
jobs:
check:
name: Check READMEs
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Check pipeline READMEs
run: |
#!/bin/bash
set -e
./hack/generate-pipelines-readme.py
if [[ -n $(git status -s) ]]
then
echo "pipeline READMEs are not up to date, run ./hack/generate-pipelines-readme.py and commit the resulting changes"
git status -s
exit 1
fi

0 comments on commit b0258f0

Please sign in to comment.