File tree Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 6666 if : always()
6767 run : |
6868 gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 259A55407DD6C00299E6607EFFDE55BE73A2D1ED
69- VERSION=$(curl -s https://jeremylong.github.io/DependencyCheck/current.txt)
70- curl -Ls "https://github.com/jeremylong /DependencyCheck/releases/download/v$VERSION/dependency-check-$VERSION-release.zip" --output dependency-check.zip
71- curl -Ls "https://github.com/jeremylong /DependencyCheck/releases/download/v$VERSION/dependency-check-$VERSION-release.zip.asc" --output dependency-check.zip.asc
69+ VERSION=$(curl -s https://jeremylong.github.io/DependencyCheck/current.txt | head -n1 | cut -d' ' -f1 )
70+ curl -Ls "https://github.com/dependency-check /DependencyCheck/releases/download/v$VERSION/dependency-check-$VERSION-release.zip" --output dependency-check.zip
71+ curl -Ls "https://github.com/dependency-check /DependencyCheck/releases/download/v$VERSION/dependency-check-$VERSION-release.zip.asc" --output dependency-check.zip.asc
7272 gpg --verify dependency-check.zip.asc
7373 unzip dependency-check.zip
7474 ./dependency-check/bin/dependency-check.sh --enableExperimental --suppression .github/dependency-check-suppressions.xml --failOnCVSS 0 --nvdApiKey ${{ env.NVD_API_KEY_NVD_API_KEY }} -s aws-opentelemetry-distro/
Original file line number Diff line number Diff line change @@ -212,3 +212,10 @@ jobs:
212212 layer_arns.tf layer.zip
213213 echo Removing release_notes.md ...
214214 rm -f release_notes.md
215+ - name : Upload layer.zip to SDK Release Notes (tagged with latest)
216+ env :
217+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
218+ run : |
219+ LATEST_SDK_VERSION=$(gh release list --repo "aws-observability/aws-otel-python-instrumentation" --json tagName,isLatest -q 'map(select(.isLatest==true)) | .[0].tagName')
220+ gh release upload "$LATEST_SDK_VERSION" layer.zip --repo "aws-observability/aws-otel-python-instrumentation" --clobber
221+ echo "✅ layer.zip successfully uploaded to $LATEST_SDK_VERSION in the upstream repo!"
Original file line number Diff line number Diff line change @@ -132,9 +132,15 @@ jobs:
132132 env :
133133 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
134134 run : |
135+ # Download layer.zip from existing latest tagged SDK release note
136+ LATEST_SDK_VERSION=$(gh release list --repo "aws-observability/aws-otel-java-instrumentation" --json tagName,isLatest -q 'map(select(.isLatest==true)) | .[0].tagName')
137+ mkdir -p layer_artifact
138+ gh release download "$LATEST_SDK_VERSION" --repo "aws-observability/aws-otel-java-instrumentation" --pattern "layer.zip" --dir layer_artifact
139+
135140 gh release create --target "$GITHUB_REF_NAME" \
136141 --title "Release v${{ github.event.inputs.version }}" \
137142 --draft \
138143 "v${{ github.event.inputs.version }}" \
139144 dist/${{ env.ARTIFACT_NAME }} \
140- ${{ env.ARTIFACT_NAME }}.sha256
145+ ${{ env.ARTIFACT_NAME }}.sha256 \
146+ layer_artifact/layer.zip
You can’t perform that action at this time.
0 commit comments