Skip to content

What's new in .NET 11 – Preview 4 docs update #50156

What's new in .NET 11 – Preview 4 docs update

What's new in .NET 11 – Preview 4 docs update #50156

name: Base branch checker
on: [pull_request]
permissions:
contents: read
jobs:
live_protection_job:
name: Check base branch
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@a5ad31d6a139d249332a2605b85202e8c0b78450 # v2.19.1
with:
egress-policy: audit
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
env:
LIVE_BASE: ${{ github.base_ref == 'live' && github.head_ref != 'main' }}
with:
script: |
if (process.env.LIVE_BASE == 'true') {
core.setFailed('PR targets live branch')
}