Skip to content

Add changelog verifier workflow (#974) #3

Add changelog verifier workflow (#974)

Add changelog verifier workflow (#974) #3

Viewed
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Changelog Verifier"

Check failure on line 5 in .github/workflows/changelog_verifier.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/changelog_verifier.yml

Invalid workflow file

You have an error in your yaml syntax on line 5
on:
push:
branches-ignore:
- 'whitesource-remediate/**'
- 'backport/**'
pull_request:
types: [opened, edited, review_requested, synchronize, reopened, ready_for_review, labeled, unlabeled]
jobs:
# Enforces the update of a changelog file on every pull request
verify-changelog:
if: github.repository == 'opensearch-project/anomaly-detection'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.event.pull_request.head.sha }}
- uses: dangoslen/changelog-enforcer@v3
with:
skipLabels: "autocut, skip-changelog"