Skip to content

Local dev environment, lint tooling, and manual release pipeline #59

Local dev environment, lint tooling, and manual release pipeline

Local dev environment, lint tooling, and manual release pipeline #59

Workflow file for this run

name: Changelogger
on:
pull_request:
jobs:
validate:
name: Validate changelog
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
tools: composer
coverage: none
- run: composer install --no-progress
- name: Check for changelog entry
run: |
BASE_SHA=${{ github.event.pull_request.base.sha }}
HEAD_SHA=${{ github.event.pull_request.head.sha }}
CHANGELOG_FILES=$(git diff --name-only "$BASE_SHA" "$HEAD_SHA" -- 'changelog/*')
if [ -z "$CHANGELOG_FILES" ]; then
echo "::warning::No changelog entry found. If this change is user-facing, please add one with: vendor/bin/changelogger add"
fi