1
0
mirror of synced 2025-12-30 03:01:36 -05:00

Merge queue: prepare triage internal changes (#30730)

This commit is contained in:
Kevin Heis
2022-09-16 12:45:47 -07:00
committed by GitHub
parent 2abdb74aea
commit 541139dffc

View File

@@ -25,17 +25,24 @@ concurrency:
jobs:
check-internal-changes:
if: github.repository == 'github/docs-internal' && github.event.pull_request.user.login != 'Octomerger'
if: github.repository == 'github/docs-internal' && github.event.pull_request && github.event.pull_request.user.login != 'Octomerger'
runs-on: ubuntu-latest
outputs:
notAllowedSearchSyncLabel: ${{ steps.filter.outputs.notAllowedSearchSyncLabel }}
steps:
# This checkout is needed for merge_group
- name: Checkout
uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.DOCUBOT_REPO_PAT }}
- name: Get files changed
uses: dorny/paths-filter@eb75a1edc117d3756a18ef89958ee59f9500ba58
id: filter
with:
# Base branch used to get changed files
base: ${{ github.event.pull_request.base.ref || github.base_ref || github.ref }}
base: ${{ github.event.pull_request.base.ref || github.base_ref || github.ref || 'main' }}
# Enables setting an output in the format in `${FILTER_NAME}_files
# with the names of the matching files formatted as JSON array
@@ -45,6 +52,7 @@ jobs:
filters: |
notAllowedSearchSyncLabel:
- 'lib/search/indexes/**'
notAllowedSearchSyncLabel:
needs: check-internal-changes
if: ${{ needs.check-internal-changes.outputs.notAllowedSearchSyncLabel == 'true' }}