Skip to content

Commit a8834c3

Browse files
committed
enhance release for udp
1 parent 84becce commit a8834c3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release-udp-exporter.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ jobs:
4444
cd exporters/aws-distro-opentelemetry-exporter-xray-udp
4545
npm pack
4646
47+
- name: Validate project version matches workflow input
48+
run: |
49+
xrayUdpSpanExporterVersion=$(node -p "require('./exporters/aws-distro-opentelemetry-exporter-xray-udp/package.json').version")
50+
if [[ ! "$xrayUdpSpanExporterVersion" == "${{ inputs.udp-exporter-version }}" ]]; then
51+
echo "Input version '${{ inputs.udp-exporter-version }}' does not match with the UDP Exporter project version '$xrayUdpSpanExporterVersion'"
52+
exit 1
53+
fi
54+
4755
# Publish OTLP UDP Exporter to npm
4856
- name: Publish to npm
4957
working-directory: exporters/aws-distro-opentelemetry-exporter-xray-udp

0 commit comments

Comments
 (0)