Skip to content
9 changes: 8 additions & 1 deletion .github/workflows/sibling-pins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,19 @@ on:
merge_group:
types: [checks_requested]

# Text edits skip sibling-pin work without cancelling code validation.
# Base changes still rerun the check.
concurrency:
group: ${{ github.workflow }}-${{ github.event.action == 'edited' && !github.event.changes.base && github.run_id || (github.event_name == 'pull_request' && github.ref) || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

jobs:
sibling-pins:
name: Sibling pins on main
name: ${{ github.event.action == 'edited' && !github.event.changes.base && 'PR metadata' || 'Sibling pins on main' }}
if: github.event.action != 'edited' || github.event.changes.base
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
Expand Down
Loading