diff --git a/.github/workflows/validate-release-notes.yml b/.github/workflows/validate-release-notes.yml new file mode 100644 index 0000000..067278f --- /dev/null +++ b/.github/workflows/validate-release-notes.yml @@ -0,0 +1,32 @@ +name: Validate Release Notes + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + lint-and-validate: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.x + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pyyaml + + - name: Lint YAML files + run: | + sudo apt-get install yamllint + yamllint release-notes.yml + + - name: Validate Release Notes + run: python validate_release_notes.py