TP-54317 | Synced file(s) with navi-android/workflows (#10915)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: Validate Release PR CI
|
||||
name: Validate Release PR
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
@@ -23,7 +23,7 @@ jobs:
|
||||
run: |
|
||||
echo "ORIGINAL_PR_NUMBER=$(echo "${{ github.event.pull_request.body }}" | grep -o "https://github.com/${{ github.repository }}/pull/[0-9]*" | grep -o "[0-9]*")" >> $GITHUB_ENV
|
||||
echo "CURRENT_PR_NUMBER=${{ github.event.pull_request.number }}" >> $GITHUB_ENV
|
||||
- name: Verification Step 1 - Link to master PR is added in release PR Body
|
||||
- name: Verification Step 1 - link to master PR is added in release PR body
|
||||
if: always()
|
||||
run: |
|
||||
ORIGINAL_PR_URL="https://github.com/${{ github.repository }}/pull/$ORIGINAL_PR_NUMBER"
|
||||
@@ -36,7 +36,7 @@ jobs:
|
||||
echo "Link to original PR raised against master branch not found in current PR body"
|
||||
exit 1
|
||||
fi
|
||||
- name: Verification Step 2 - release PR Title matches master PR Title
|
||||
- name: Verification Step 2 - release PR title matches master PR title
|
||||
if: always()
|
||||
run: |
|
||||
ORIGINAL_PR_TITLE=$(curl -L -H "Authorization: Bearer ${{ secrets.GH_PAT_RO }}" "https://api.github.com/repos/${{ github.repository }}/pulls/$ORIGINAL_PR_NUMBER" | jq -r .title)
|
||||
@@ -49,7 +49,7 @@ jobs:
|
||||
echo "Current PR title does not match original PR title raised against master branch"
|
||||
exit 1
|
||||
fi
|
||||
- name: Verification Step 3 - master PR is Merged
|
||||
- name: Verification Step 3 - master PR is merged
|
||||
if: always()
|
||||
run: |
|
||||
ORIGINAL_PR_IS_MERGED=$(curl -L -H "Authorization: Bearer ${{ secrets.GH_PAT_RO }}" "https://api.github.com/repos/${{ github.repository }}/pulls/$ORIGINAL_PR_NUMBER" | jq -r '.merged')
|
||||
Reference in New Issue
Block a user