diff --git a/.github/workflows/generate_api.yml b/.github/workflows/generate_api.yml index a4e9e816a..6e3f9743d 100644 --- a/.github/workflows/generate_api.yml +++ b/.github/workflows/generate_api.yml @@ -71,7 +71,7 @@ jobs: commit-message: "Updated opensearch-ruby to reflect the latest OpenSearch API spec (${{ env.date }})" title: "[AUTOCUT] Update opensearch-ruby to reflect the latest OpenSearch API spec (${{ env.date }})" body: | - Update `opensearch-ruby` to reflect the latest [OpenSearch API spec](https://github.com/opensearch-project/opensearch-api-specification/releases/download/main-latest/opensearch-openapi.yaml). + Update `opensearch-ruby` to reflect the latest [OpenSearch API spec](https://api-spec.opensearch.org/opensearch-openapi.yaml). Date: ${{ env.date }} branch: update-api-from-spec base: main diff --git a/CHANGELOG.md b/CHANGELOG.md index d804f492c..0c487cc6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ### Added ### Changed - Update rubygems public key setting expiry to 20260707 ([#308](https://github.com/opensearch-project/opensearch-ruby/pull/308)) +- Updated API spec download URL to `https://api-spec.opensearch.org` ([#340](https://github.com/opensearch-project/opensearch-ruby/pull/340)) ### Deprecated ### Removed ### Fixed diff --git a/api_generator/Rakefile b/api_generator/Rakefile index 4c8552338..2f9069b85 100644 --- a/api_generator/Rakefile +++ b/api_generator/Rakefile @@ -10,7 +10,7 @@ require 'rake' require 'active_support/all' task :download_spec do - sh 'curl -L -X GET "https://github.com/opensearch-project/opensearch-api-specification/releases/download/main-latest/opensearch-openapi.yaml" -o opensearch-openapi.yaml' + sh 'curl -L -X GET "https://api-spec.opensearch.org/opensearch-openapi.yaml" -o opensearch-openapi.yaml' end