Skip to content
name: PR target branch ${{ github.event.number || 'workflow_dispatch' }}

Check failure on line 1 in .github/workflows/pr-target-branch.yml

View workflow run for this annotation

GitHub Actions / PR target branch ${{ github.event.number || 'workflow_dispatch' }}

Invalid workflow file

The workflow is not valid. .github/workflows/pr-target-branch.yml (Line: 1, Col: 7): Unrecognized named-value: 'github'. Located at position 1 within expression: github.event.number || 'workflow_dispatch'
on:
pull_request:
types: [opened, reopened, synchronize, edited]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
verify:
runs-on: ubuntu-latest
steps:
- name: Echo target branch
run: |
echo Target branch is ${{ github.event.pull_request.base.ref }}
echo Target branch 2 is ${{github.base_ref}}