From 27db6d71fe734e0588884d12d6e419fee430444f Mon Sep 17 00:00:00 2001 From: Simon Mikulcik Date: Tue, 3 Nov 2026 10:54:19 -0600 Subject: [PATCH] fix: pull in exceptions from OpenAPI-Specification --- .github/workflows/check-restricted-files.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/check-restricted-files.yaml b/.github/workflows/check-restricted-files.yaml index 3f2af91..4f9ee94 100644 --- a/.github/workflows/check-restricted-files.yaml +++ b/.github/workflows/check-restricted-files.yaml @@ -24,6 +24,19 @@ jobs: if [[ "${{ github.event.pull_request.head.repo.full_name }}" == "OAI/Overlay-Specification" ]] && \ [[ "${{ github.event.pull_request.base.repo.full_name }}" == "OAI/Overlay-Specification" ]]; then + if [[ "${{ github.event.pull_request.head.ref }}" == "dev-sync-with-main" ]] && \ + [[ "${{ github.event.pull_request.base.ref }}" == "dev" ]]; then + echo Sync from main to dev via ${{ github.event.pull_request.head.ref }} + exit 0 + fi + + if [[ "${{ github.event.pull_request.head.ref }}" =~ ^v[0-9]+\.[0-9]+-dev-sync-with-dev$ ]] && \ + [[ "${{ github.event.pull_request.base.ref }}" =~ ^v[0-9]+\.[0-9]+-dev$ ]] && \ + [[ ${{ github.event.pull_request.head.ref }} == ${{ github.event.pull_request.base.ref }}* ]]; then + echo Sync from dev to ${{ github.event.pull_request.base.ref }} via ${{ github.event.pull_request.head.ref }} + exit 0 + fi + if [[ "${{ github.event.pull_request.head.ref }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+-rel$ ]] && \ [[ "${{ github.event.pull_request.base.ref }}" == "main" ]]; then echo Release from ${{ github.event.pull_request.head.ref }} to main