Fix release automation (#2286)

Co-authored-by: Armin Ruech <7052238+arminru@users.noreply.github.com>
This commit is contained in:
Trask Stalnaker 2025-05-20 07:20:24 -07:00 committed by GitHub
parent e96d8de9e8
commit 8f79045545
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 6 deletions

View File

@ -31,12 +31,13 @@ jobs:
fi fi
version=${{ inputs.version }} version=${{ inputs.version }}
sed -i "0,/^schema_url: .*\/next$/s/\/next$/\/$version/" schema-next.yaml
sed -i "0,/^ next:$/s// $version:/" schema-next.yaml
cp schema-next.yaml "schemas/$version" cp schema-next.yaml "schemas/$version"
git add "schemas/$version"
sed -i "0,/^ $version:$/s// next:\n $version:/" schema-next.yaml sed -i "s/ next:$/ next:\n $version/" schema-next.yaml
sed -i "s/^schema_url: .*/schema_url: https:\/\/opentelemetry.io\/schemas\/$version/" "schemas/$version"
sed -i "s/ next:$/ $version/" "schemas/$version"
git add "schemas/$version"
- name: Update change log - name: Update change log
run: | run: |
@ -48,7 +49,7 @@ jobs:
GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
run: | run: |
version=${{ inputs.version }} version=${{ inputs.version }}
message="Prepare release v${version}" message="[chore] Prepare release v${version}"
body="Prepare release \`v${version}\`." body="Prepare release \`v${version}\`."
branch="opentelemetrybot/prepare-release-v${version}" branch="opentelemetrybot/prepare-release-v${version}"

View File

@ -1,5 +1,5 @@
file_format: 1.1.0 file_format: 1.1.0
schema_url: https://opentelemetry.io/schemas/1.34.0 schema_url: https://opentelemetry.io/schemas/next
versions: versions:
next: next:
1.34.0: 1.34.0: