Test branch #3
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "NGO - Backport Verification" | |
on: | |
pull_request: | |
types: [opened, edited] | |
branches: | |
- develop | |
- develop-2.0.0 | |
jobs: | |
backport-verification: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Check PR description | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
const pr = context.payload.pull_request; | |
const body = pr.body || ''; | |
if (!body.includes('## Backport')) { | |
core.setFailed('PR description must include a "## Backport" section. Please add this section and provide information about this PR backport to develop or develop-2.0.0 branch or explain why backport is not needed.'); | |
} |