Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/renovate-semconv.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Renovate Semantic Conventions Post-Update

on:
pull_request_target:
pull_request:
types: [opened, synchronize, edited]
paths:
- 'semantic_conventions/Rakefile'
Expand Down Expand Up @@ -32,9 +32,11 @@ jobs:

- name: Check if SPEC_VERSION changed
id: check_changes
env:
BASE_REF: ${{ github.base_ref }}
run: |
git fetch origin ${{ github.base_ref }}
if git diff origin/${{ github.base_ref }} HEAD -- semantic_conventions/Rakefile | grep -q "SPEC_VERSION"; then
git fetch origin "$BASE_REF"
if git diff "origin/$BASE_REF" HEAD -- semantic_conventions/Rakefile | grep -q "SPEC_VERSION"; then
echo "changed=true" >> $GITHUB_OUTPUT
else
echo "changed=false" >> $GITHUB_OUTPUT
Expand Down
Loading