forked from open-telemetry/semantic-conventions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add_k8s_ns_phase
- Loading branch information
Showing
11 changed files
with
112 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Prepare release | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'The version to release, e.g. 1.30.0' | ||
required: true | ||
|
||
jobs: | ||
create-pull-request: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Validate version | ||
run: | | ||
version=${{ inputs.version }} | ||
if [[ ! "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | ||
echo "unexpected version: $version" | ||
exit 1 | ||
fi | ||
- name: Use CLA approved github bot | ||
run: .github/workflows/scripts/use-cla-approved-github-bot.sh | ||
|
||
- name: Update schema files | ||
run: | | ||
if ! grep -q "^ next:$" schema-next.yaml; then | ||
echo "String 'next:' not found in the file" | ||
exit 1 | ||
fi | ||
version=${{ inputs.version }} | ||
sed -i "0,/^ next:$/s// $version:/" schema-next.yaml | ||
cp schema-next.yaml "schemas/$version" | ||
git add "schemas/$version" | ||
sed -i "0,/^ $version:$/s// next:\n $version:/" schema-next.yaml | ||
- name: Update change log | ||
run: | | ||
make chlog-update VERSION=v${{ inputs.version }} | ||
- name: Create pull request | ||
env: | ||
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows | ||
GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }} | ||
run: | | ||
version=${{ inputs.version }} | ||
message="Prepare release v${version}" | ||
body="Prepare release \`v${version}\`." | ||
branch="opentelemetrybot/prepare-release-v${version}" | ||
git checkout -b $branch | ||
git commit -a -m "$message" | ||
git push --set-upstream origin $branch | ||
gh pr create --title "$message" \ | ||
--body "$body" \ | ||
--base main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash -e | ||
|
||
git config user.name opentelemetrybot | ||
git config user.email [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Making a Release | ||
|
||
- Ensure the referenced specification version is up to date. Use | ||
[tooling to update the spec](./CONTRIBUTING.md#updating-the-referenced-specification-version) | ||
if needed. | ||
- Run [opentelemetry.io workflow](https://github.com/open-telemetry/opentelemetry.io/actions/workflows/build-dev.yml) | ||
against `semantic-conventions` submodule as a smoke-test for docs. Fix broken links, if any. | ||
- Create a staging branch for the release. | ||
- Update `schema-next.yaml` file and move to `schemas/{version}` | ||
- Ensure the `next` version is appropriately configured as the `{version}`. | ||
- Copy `schema-next.yaml` to `schemas/{version}`. | ||
- Add `next` as a version in `schema-next.yaml` version. | ||
- Run `make chlog-update VERSION=v{version}` | ||
- `make chlog-update` will clean up all the current `.yaml` files inside the | ||
`.chloggen` folder automatically | ||
- Double check that `CHANGELOG.md` is updated with the proper `v{version}` | ||
- Send staging branch as PR for review. | ||
- After the release PR is merged, create a [new release](https://github.com/open-telemetry/semantic-conventions/releases/new): | ||
- Set title and tag to `v{version}` | ||
- Set target to the commit of the merged release PR | ||
- Copy changelog to the release notes | ||
- Verify that the release looks like expected | ||
- Publish release | ||
|
||
New release is then auto-discovered by [opentelemetry.io](https://github.com/open-telemetry/opentelemetry.io) pipelines which (via bot-generated PR) | ||
eventually results in new version of schema file being published. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters