Skip to content

highlight correct lines (#34206) #4141

highlight correct lines (#34206)

highlight correct lines (#34206) #4141

Workflow file for this run

name: Merge to Live
on:
push:
branches:
- main
permissions:
contents: read
pull-requests: write
env:
DOTNET_DOCS_HEAD: main
DOTNET_DOCS_BASE: live
# Prevent merging merging at the same time
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
jobs:
default:
runs-on: ubuntu-latest
if: github.event.repository.fork == false
steps:
- uses: actions/checkout@v2
- run: |
if [ "$(gh pr list --base $DOTNET_DOCS_BASE --head $DOTNET_DOCS_HEAD --json id --jq ". | length")" -ne "0" ]; then
echo "::notice title=Skipping Workflow::A pull request for branch \"$DOTNET_DOCS_HEAD\" into branch \"$DOTNET_DOCS_BASE\" already exists."
else
gh pr create --base $DOTNET_DOCS_BASE --head $DOTNET_DOCS_HEAD --title "Merge to Live" --body "[AUTOMATED]"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}