Skip to content

Commit

Permalink
Added an automated api update bot for opensearch-py
Browse files Browse the repository at this point in the history
Signed-off-by: saimedhi <[email protected]>
  • Loading branch information
saimedhi committed Feb 2, 2024
1 parent 2046a6f commit f6743e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/update_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ jobs:
find: "### Updated APIs"
replace: "### Updated APIs\n- Updated opensearch-py to reflect the latest OpenSearch API spec."
include: "**CHANGELOG.md"
- name: Update CHANGELOG
run: |
start_line=$(grep -n '## \[Unreleased\]' CHANGELOG.md | cut -d: -f1)
end_line=$(awk '/^## \[/ {print NR; exit}' CHANGELOG.md || wc -l < CHANGELOG.md)
sed -i "${start_line},${end_line}s/### Updated APIs/### Updated APIs\n- Updated opensearch-py to reflect the latest OpenSearch API spec./" CHANGELOG.md
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
Expand Down

0 comments on commit f6743e4

Please sign in to comment.