TP-00000 | Fix Validate Release PR GH Action (#6609)
This commit is contained in:
committed by
GitHub Enterprise
parent
bdbe3cee00
commit
cc79460d7d
@@ -1,20 +1,19 @@
|
||||
name: Release PR check
|
||||
name: Release PR CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- release/*
|
||||
types: [opened, reopened, synchronize]
|
||||
branches: [ release-* ]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
check_release_pr:
|
||||
validate-pr:
|
||||
runs-on: [ default ]
|
||||
|
||||
steps:
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Check if link to original PR is added in PR body
|
||||
run: |
|
||||
ORIGINAL_PR_NUMBER=$(echo "${{ github.event.pull_request.body }}" | grep -o "https://github.cmd.navi-tech.in/${{ github.repository }}/pull/[0-9]*" | grep -o "[0-9]*")
|
||||
@@ -28,7 +27,6 @@ jobs:
|
||||
echo "Link to original PR raised against development branch not found in current PR body"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Check if PR title matches original PR title
|
||||
run: |
|
||||
ORIGINAL_PR_NUMBER=$(echo ${{ github.event.pull_request.body }} | grep -o "https://github.cmd.navi-tech.in/${{ github.repository }}/pull/[0-9]*" | grep -o "[0-9]*")
|
||||
@@ -42,7 +40,6 @@ jobs:
|
||||
echo "Current PR title does not match original PR title raised against development branch"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Check if original PR is merged in development branch
|
||||
run: |
|
||||
ORIGINAL_PR_NUMBER=$(echo ${{ github.event.pull_request.body }} | grep -o "https://github.cmd.navi-tech.in/${{ github.repository }}/pull/[0-9]*" | grep -o "[0-9]*")
|
||||
@@ -57,7 +54,6 @@ jobs:
|
||||
echo "Status: Fail. Original PR is not merged in development branch."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Check if current PR changes are subset of original PR changes
|
||||
run: |
|
||||
ORIGINAL_PR_NUMBER=$(echo "${{ github.event.pull_request.body }}" | grep -o "https://github.cmd.navi-tech.in/${{ github.repository }}/pull/[0-9]*" | grep -o "[0-9]*")
|
||||
Reference in New Issue
Block a user