Skip to content

Commit ab251b5

Browse files
authored
update post release workflow to change image for scanning (#62)
*Issue #, if available:* *Description of changes:* Update the release workflow to change the image tags in daily scan workflow. Test run: https://github.com/aws-observability/aws-otel-js-instrumentation/actions/runs/10855575363 Sample PR generated by the test run: https://github.com/aws-observability/aws-otel-js-instrumentation/pull/61/files By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent f2e0f77 commit ab251b5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/post-release-version-bump.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,22 @@ jobs:
9494
git fetch origin $RELEASE_BRANCH
9595
git checkout -b "prepare-main-for-next-dev-cycle-${VERSION}" origin/$RELEASE_BRANCH
9696
97+
- name: Set up node
98+
uses: actions/setup-node@v4
99+
with:
100+
node-version: 20
101+
97102
- name: Update version to next development version in main
98-
# TODO: change the version in daily scan like adot python did
99-
# sed -i 's/python:v.*"/python:v'$VERSION'"/' .github/workflows/daily_scan.yml
100103
run: |
101104
DEV_VERSION="${{ github.event.inputs.version }}.dev0"
102105
sed -i'' -e "s/\"version\": \".*\"/\"version\": \"${DEV_VERSION}\"/" aws-distro-opentelemetry-node-autoinstrumentation/package.json
103106
sed -i'' -e "s/\"version\": \".*\"/\"version\": \"${DEV_VERSION}\"/" docker-utils/package.json
104107
sed -i'' -e "s/\"version\": \".*\"/\"version\": \"${DEV_VERSION}\"/" package.json
105108
VERSION="${{ github.event.inputs.version }}"
109+
npm install
110+
sed -i "s|\(/aws-observability/adot-autoinstrumentation-node:\)v[0-9]\+\.[0-9]\+\.[0-9]\+|\1v${{github.event.inputs.version}}|g" .github/workflows/daily-scan.yml
106111
git add .
112+
git status
107113
git commit -m "Prepare main for next development cycle: Update version to $DEV_VERSION"
108114
git push --set-upstream origin "prepare-main-for-next-dev-cycle-${VERSION}"
109115

0 commit comments

Comments
 (0)