Skip to content

Commit 74985cf

Browse files
authored
chore: gix GHA release (#50)
1 parent afd90bf commit 74985cf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/release.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ jobs:
4040
RELEASE: ${{needs.check.outputs.release}}
4141
run: |
4242
echo "LAST_TAG=`git tag --sort=committerdate | tail -1`" >> $GITHUB_ENV
43-
echo "TAG=$RELEASE" >> $GITHUB_ENV
44-
45-
echo "ARTIFACT_VERSION=${RELEASE:1}" >> $GITHUB_ENV
46-
ARTIFACT="otelcol-contrib_${ARTIFACT_VERSION}_linux_amd64.tar.gz"
43+
ARTIFACT_VERSION=${RELEASE:1}
44+
echo "ARTIFACT_VERSION=ARTIFACT_VERSION" >> $GITHUB_ENV
45+
46+
ARTIFACT="otelcol-contrib_${{ env.ARTIFACT_VERSION }}_linux_amd64.tar.gz"
4747
ARTIFACT_URL="https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/$RELEASE/$ARTIFACT"
4848
4949
mkdir .temp/
@@ -88,7 +88,7 @@ jobs:
8888
- name: Release
8989
uses: softprops/action-gh-release@v1
9090
with:
91-
tag_name: ${{ env.TAG }}
91+
tag_name: ${{ env.RELEASE }}
9292
body_path: ./changelog.md
9393
files: |
9494
otlpinf-amd64.zip
@@ -118,4 +118,4 @@ jobs:
118118
cache-to: type=gha,mode=max
119119
tags: |
120120
netboxlabs/opentelemetry-infinity:latest
121-
netboxlabs/opentelemetry-infinity:${{ env.TAG }}
121+
netboxlabs/opentelemetry-infinity:${{ env.RELEASE }}

0 commit comments

Comments
 (0)