Fix merge queue (#2127)

This commit is contained in:
Trask Stalnaker 2025-04-17 08:54:35 -07:00 committed by GitHub
parent 379d13f881
commit be3d743cfc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 16 additions and 13 deletions

View File

@ -2,15 +2,17 @@ name: Build System Check
on:
push:
paths:
- 'Makefile'
- 'dependencies.Dockerfile'
- 'internal/tools/**'
branches:
- main
paths:
- 'Makefile'
- 'dependencies.Dockerfile'
- 'internal/tools/**'
pull_request:
paths:
- 'Makefile'
- 'dependencies.Dockerfile'
- 'internal/tools/**'
paths:
- 'Makefile'
- 'dependencies.Dockerfile'
- 'internal/tools/**'
jobs:

View File

@ -24,8 +24,6 @@ jobs:
!contains(github.event.pull_request.labels.*.name, 'Skip Changelog') &&
!contains(github.event.pull_request.title, '[chore]')
}}
env:
PR_HEAD: ${{ github.event.pull_request.head.sha }}
steps:
- name: Checkout Repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@ -46,7 +44,7 @@ jobs:
- name: Ensure no changes to the CHANGELOG.md
run: |
if [[ $(git diff --name-only $(git merge-base origin/main $PR_HEAD) $PR_HEAD ./CHANGELOG*.md) ]]
if [[ $(git diff --name-only origin/main HEAD ./CHANGELOG*.md) ]]
then
echo "CHANGELOG.md should not be directly modified."
echo "Please add a .yaml file to the ./.chloggen/ directory."
@ -59,7 +57,7 @@ jobs:
- name: Ensure ./.chloggen/*.yaml addition(s)
run: |
if [[ 1 -gt $(git diff --diff-filter=A --name-only $(git merge-base origin/main $PR_HEAD) $PR_HEAD ./.chloggen | grep -c \\.yaml) ]]
if [[ 1 -gt $(git diff --diff-filter=A --name-only origin/main HEAD ./.chloggen | grep -c \\.yaml) ]]
then
echo "No changelog entry was added to the ./.chloggen/ directory."
echo "Please add a .yaml file to the ./.chloggen/ directory."

View File

@ -2,6 +2,8 @@ name: Checks
on:
push:
branches:
- main
pull_request:
merge_group:

View File

@ -1,7 +1,8 @@
name: 'Generate registry area labels'
on:
push:
branches: [main]
branches:
- main
paths:
- model/**
- ./.github/workflows/generate-registry-area-labels.yml