File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 3737 - name : Build layer for Python ${{ matrix.python_version }} on ${{ matrix.arch }}
3838 run : |
3939 echo "Building layer for Python ${{ matrix.python_version }} on ${{ matrix.arch }}"
40- ARCH=${{ matrix.arch }} PYTHON_VERSION=${{ matrix.python_version }} SED_EXPRESSION="s|(ddtrace = )\[[^]]*]|\1{ file = " ${{ steps.find-ddtrace-wheel.outputs.wheel_path }}" }|g " ./scripts/build_layers.sh
40+ ARCH=${{ matrix.arch }} PYTHON_VERSION=${{ matrix.python_version }} DD_TRACE_WHEEL=" ${{ steps.find-ddtrace-wheel.outputs.wheel_path }}" ./scripts/build_layers.sh
4141
4242 - name : Upload layer artifact
4343 uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change 4646 PYTHON_VERSIONS=$PYTHON_VERSION
4747fi
4848
49- if [ -z " $SED_EXPRESSION " ]; then
50- sed -z -E -i " $SED_EXPRESSION " pyproject.toml
49+ if [ -z " $DD_TRACE_COMMIT_BRANCH " ]; then
50+ sed -z -E -i ' s|(ddtrace = )\[[^]]*]|\1{ git = "https://github.com/DataDog/dd-trace-py.git", branch = \"' " $DD_TRACE_COMMIT_BRANCH " ' \" }|g' pyproject.toml
51+ else
52+ if [ -z " $DD_TRACE_WHEEL " ]; then
53+ sed -z -E -i ' s|(ddtrace = )\[[^]]*]|\1{ file = "' " $DD_TRACE_WHEEL " ' " }|g' pyproject.toml
54+ fi
5155fi
5256
5357function make_path_absolute {
You can’t perform that action at this time.
0 commit comments