Skip to content

Commit 09256f0

Browse files
updated versioning of layer
1 parent bf55e99 commit 09256f0

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/release-layer-collector.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ jobs:
2626
pwd
2727
last_tag=$(git describe --tags `git rev-list --tags --max-count=1`)
2828
echo "::set-output name=last_tag::$last_tag"
29-
# The following 10 lines of code were human modified suggestions given by GitHub Copilot
29+
# The following 15 lines of code were human modified suggestions given by GitHub Copilot
3030
- name: Increment tag version
3131
id: increment_tag
3232
run: |
3333
last_tag=${{ steps.get_last_tag.outputs.last_tag }}
3434
prefix=$(echo $last_tag | cut -d'/' -f1)
35-
major_minor=$(echo $last_tag | cut -d'/' -f2 | cut -d'.' -f1,2)
35+
major=$(echo $last_tag | cut -d'/' -f2 | cut -d'.' -f1)
36+
minor=$(echo $last_tag | cut -d'/' -f2 | cut -d'.' -f2)
3637
patch=$(echo $last_tag | cut -d'.' -f3)
37-
x=$(echo $major_minor | cut -d'.' -f2)
38-
new_x=$((x + 1))
39-
new_tag="$prefix/0.$new_x.0"
38+
new_major=$((major + 1))
39+
new_tag="$prefix/$new_major.0.0"
4040
git tag $new_tag
4141
git push origin $new_tag
4242
echo "::set-output name=new_tag::$new_tag"
@@ -62,7 +62,7 @@ jobs:
6262
with:
6363
go-version: '^1.23.1'
6464
- name: build
65-
run: make -C collector package GOARCH=${{ matrix.architecture }}
65+
run: make -C collector package GOARCH=${{ matrix.architecture }} BUILDTAGS="lambdacomponents.custom,lambdacomponents.all"
6666
- uses: actions/upload-artifact@v4
6767
with:
6868
name: opentelemetry-collector-layer-${{ matrix.architecture }}.zip

0 commit comments

Comments
 (0)