Skip to content

Commit

Permalink
Fix approvers
Browse files Browse the repository at this point in the history
Signed-off-by: Sayali Gaikawad <[email protected]>
  • Loading branch information
gaiksaya committed Mar 3, 2023
1 parent b97d55c commit ba50c71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,16 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- id: get_data
- id: get_approvers
run: |
echo "approvers=$(cat .github/CODEOWNERS | grep @ | tr -d '* ' | sed 's/@/,/g' | sed 's/,//1')" >> $GITHUB_OUTPUT
echo "version=$(cat package.json | jq .version | tr -d "\"")" >> $GITHUB_OUTPUT
- uses: trstringer/manual-approval@v1
with:
secret: ${{ github.TOKEN }}
approvers: ${{ steps.get_data.outputs.approvers }}
approvers: ${{ steps.get_approvers.outputs.approvers }}
minimum-approvals: 1
issue-title: 'Release opensearch-js : ${{ steps.get_data.outputs.version }}'
issue-body: "Please approve or deny the release of opensearch-js. **VERSION**: ${{ steps.get_data.outputs.version }} **TAG**: ${{ github.ref_name }} **COMMIT**: ${{ github.sha }}"
issue-title: 'Release opensearch-net'
issue-body: "Please approve or deny the release of opensearch-net **TAG**: ${{ github.ref_name }} **COMMIT**: ${{ github.sha }}"
# exclude-workflow-initiator-as-approver: true
- name: Release
uses: softprops/action-gh-release@v1
Expand Down
3 changes: 2 additions & 1 deletion jenkins/release.jenkinsFile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ standardReleasePipelineWithGenericTrigger(
publishToNuget(
repository: 'https://github.com/opensearch-project/opensearch-net',
tag: "$tag",
solutionFilePath: 'OpenSearch.sln'
solutionFilePath: 'OpenSearch.sln',
apiKeyCredentialId: 'jenkins-opensearch-net-generic-webhook-token'
)
}

0 comments on commit ba50c71

Please sign in to comment.