diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 9d9abd4a6..620dd277b 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -173,9 +173,13 @@ { "customType": "regex", "description": "Update Semantic Conventions version in Rake files", - "managerFilePatterns": ["/^semantic_conventions/Rakefile$/"], + "managerFilePatterns": [ + "/^semantic_conventions/Rakefile$/", + "/^semantic_conventions/semconv.yaml"$/" + ], "matchStrings": [ - "SPEC_VERSION = '(?.*?)'" + "SPEC_VERSION = '(?.*?)'", + "spec_version: '(?.*?)'" ], "depNameTemplate": "open-telemetry/semantic-conventions", "datasourceTemplate": "github-releases", diff --git a/.github/workflows/release-request.yml b/.github/workflows/release-request.yml index f1ca50bed..15618e76f 100644 --- a/.github/workflows/release-request.yml +++ b/.github/workflows/release-request.yml @@ -7,6 +7,11 @@ on: description: Components to release (leave blank to release all components) required: false default: "" + push: + branches: + - main + paths: + - "semantic_conventions/semconv.yaml" permissions: contents: read @@ -34,11 +39,16 @@ jobs: with: app-id: ${{ vars.OTELBOT_RUBY_APP_ID }} private-key: ${{ secrets.OTELBOT_RUBY_PRIVATE_KEY }} + - name: Determine releases + id: detect + if: ${{ github.event_name == 'push' }} + run: | + echo "components=opentelemetry-semantic_conventions" >> $GITHUB_OUTPUT - name: Open release pull request env: # Use an app token instead of GITHUB_TOKEN to trigger workflows GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - RELEASE_NAMES: ${{ github.event.inputs.names }} + RELEASE_NAMES: ${{ github.event.inputs.names || steps.detect.outputs.components }} TARGET_BRANCH: ${{ github.ref }} run: | bundle exec toys release request --yes --verbose \ diff --git a/semantic_conventions/semconv.yaml b/semantic_conventions/semconv.yaml new file mode 100644 index 000000000..7db1d2f49 --- /dev/null +++ b/semantic_conventions/semconv.yaml @@ -0,0 +1 @@ +spec_version: '1.40.0'