Skip to content

Merge pull request #5830 from ashishkumarrai1998/main #2530

Merge pull request #5830 from ashishkumarrai1998/main

Merge pull request #5830 from ashishkumarrai1998/main #2530

name: update changelog and api version
on:
push:
branches: [ main, 'release/**' ]
paths-ignore: ['docs/**', 'Tests/**', 'Tools/**', '.github/**']
pull_request:
branches: [ main, 'release/**' ]
paths-ignore: ['docs/**', 'Tests/**', 'Tools/**', '.github/**']
jobs:
build:
runs-on: ubuntu-latest # windows-latest | macos-latest
name: Check if changelog and api version were updated
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.
- name: Get changed files using defaults
id: changed-files
uses: tj-actions/changed-files@v19
- name: Run step when a CHANGELOG.md didn't change
uses: actions/github-script@v3
if: ${{ !contains(steps.changed-files.outputs.all_changed_files, 'CHANGELOG.md') }}
with:
script: |
core.setFailed('CHANGELOG.md should be modified')