Skip to content
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

chore(ci): reuse changelog workflow #11549

Merged
merged 3 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/changelog-requirement.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Changelog Requirement

on:
pull_request:
types: [ opened, synchronize, labeled, unlabeled ]
paths:
- 'kong/**'
- '**.rockspec'
- '.requirements'

jobs:
require-changelog:
if: ${{ !contains(github.event.*.labels.*.name, 'skip-changelog') }}
name: Requires changelog
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2

- name: computes changed files
id: changelog-check
uses: tj-actions/changed-files@2f7246cb26e8bb6709b6cbfc1fec7febfe82e96a # v37
with:
files: 'CHANGELOG/unreleased/**/*.yaml'

- name: asserts changelog added
run: >
if [ "${{ steps.changelog-check.outputs.added_files_count }}" = "0" ]; then
echo "Should contain at least one changelog file in CHANGELOG/unreleased/*/ directory"
exit 1
fi
17 changes: 17 additions & 0 deletions .github/workflows/changelog-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Changelog Validation

on:
pull_request:
types: [ opened, synchronize ]

jobs:
validate-changelog:
name: Validate changelog
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Validate changelogs
uses: Kong/gateway-changelog@main
with:
files: CHANGELOG/unreleased/*/*.yaml
47 changes: 0 additions & 47 deletions .github/workflows/changelog.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions CHANGELOG/Makefile

This file was deleted.

88 changes: 0 additions & 88 deletions CHANGELOG/README.md

This file was deleted.

Loading
Loading