8000 Update xml/System.Diagnostics.CodeAnalysis/FeatureSwitchDefinitionAttribute.xml · dotnet/dotnet-api-docs@cbd5fce · GitHub
[go: up one dir, main page]

Skip to content

Add a note describing feature switches as last resort option #748

Add a note describing feature switches as last resort option

Add a note describing feature switches as last resort option #748

Workflow file for this run

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@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
with:
egress-policy: audit
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
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')
}
0