Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit 6417a85

Browse files
fix(ci): use sha instead of ref in changes.yml (vectordotdev#23582)
1 parent 4dc7c77 commit 6417a85

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/changes.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ on:
126126
e2e-opentelemetry-logs:
127127
value: ${{ jobs.e2e_tests.outputs.opentelemetry-logs }}
128128
env:
129-
BASE_REF: ${{ inputs.base_ref || (github.event_name == 'merge_group' && github.event.merge_group.base_ref) || github.event.pull_request.base.ref }}
130-
HEAD_REF: ${{ inputs.head_ref || (github.event_name == 'merge_group' && github.event.merge_group.head_ref) || github.event.pull_request.head.ref }}
129+
BASE_SHA: ${{ inputs.base_ref || (github.event_name == 'merge_group' && github.event.merge_group.base_sha) || github.event.pull_request.base.sha }}
130+
HEAD_SHA: ${{ inputs.head_ref || (github.event_name == 'merge_group' && github.event.merge_group.head_sha) || github.event.pull_request.head.sha }}
131131

132132
jobs:
133133
# Detects changes that are not specific to integration tests
@@ -151,8 +151,8 @@ jobs:
151151
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
152152
id: filter
153153
with:
154-
base: ${{ env.BASE_REF }}
155-
ref: ${{ env.HEAD_REF }}
154+
base: ${{ env.BASE_SHA }}
155+
ref: ${{ env.HEAD_SHA }}
156156
filters: |
157157
source:
158158
- ".github/workflows/test.yml"
@@ -257,8 +257,8 @@ jobs:
257257
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
258258
id: filter
259259
with:
260-
base: ${{ env.BASE_REF }}
261-
ref: ${{ env.HEAD_REF }}
260+
base: ${{ env.BASE_SHA }}
261+
ref: ${{ env.HEAD_SHA }}
262262
filters: int_test_filters.yaml
263263

264264
# This JSON hack was introduced because GitHub Actions does not support dynamic expressions in the
@@ -335,6 +335,6 @@ jobs:
335335
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
336336
id: filter
337337
with:
338-
base: ${{ env.BASE_REF }}
339-
ref: ${{ env.HEAD_REF }}
338+
base: ${{ env.BASE_SHA }}
339+
ref: ${{ env.HEAD_SHA }}
340340
filters: int_test_filters.yaml

0 commit comments

Comments
 (0)