Add 2PR approval to release workflow (#306)
* Add 2PR approval to release workflow Signed-off-by: Sayali Gaikawad <[email protected]> * Update .github/workflows/release-drafter.yml Signed-off-by: Sayali Gaikawad <[email protected]> Co-authored-by: Harsha Vamsi Kalluri <[email protected]> --------- Signed-off-by: Sayali Gaikawad <[email protected]> Co-authored-by: Harsha Vamsi Kalluri <[email protected]>
This commit is contained in:
co-authored by
Harsha Vamsi Kalluri
parent
49ae7c76e0
commit
4f66eb8ab9
@@ -11,6 +11,17 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
- id: get_approvers
|
||||||
|
run: |
|
||||||
|
echo "approvers=$(cat .github/CODEOWNERS | grep @ | tr -d '* ' | sed 's/@/,/g' | sed 's/,//1')" >> $GITHUB_OUTPUT
|
||||||
|
- uses: trstringer/manual-approval@v1
|
||||||
|
with:
|
||||||
|
secret: ${{ github.TOKEN }}
|
||||||
|
approvers: ${{ steps.get_approvers.outputs.approvers }}
|
||||||
|
minimum-approvals: 2
|
||||||
|
issue-title: 'Release opensearch-py'
|
||||||
|
issue-body: "Please approve or deny the release of opensearch-py. **Tag**: ${{ github.ref_name }} **Commit**: ${{ github.sha }}"
|
||||||
|
exclude-workflow-initiator-as-approver: true
|
||||||
- name: Set up Python 3
|
- name: Set up Python 3
|
||||||
uses: actions/setup-python@v3
|
uses: actions/setup-python@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user