File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ TASK=$1
14
14
TASK_ARGS=()
15
15
VERSION=$2
16
16
STACK_VERSION=$VERSION
17
- REPO_BINDING=" $repo :/sln"
18
17
set -euo pipefail
19
18
20
19
output_folder=" .ci/output"
21
20
OUTPUT_DIR=" $repo /${output_folder} "
21
+ REPO_BINDING=" ${OUTPUT_DIR} :/sln/${output_folder} "
22
22
mkdir -p " $OUTPUT_DIR "
23
23
24
24
DOTNET_VERSION=${DOTNET_VERSION-5.0.103}
@@ -49,19 +49,19 @@ case $CMD in
49
49
TASK=codegen
50
50
# VERSION is BRANCH here for now
51
51
TASK_ARGS=(" $VERSION " )
52
- REPO_BINDING=" ${OUTPUT_DIR} :/sln/ ${output_folder} "
52
+ REPO_BINDING=" $repo :/sln"
53
53
;;
54
54
* )
55
55
echo -e " \nUsage:\n\t $CMD is not supported right now\n"
56
56
exit 1
57
57
esac
58
58
59
- # --volume "${OUTPUT_DIR}:/sln/${output_folder}"
60
-
59
+ # -u does not work need to be root inside the container, the chown hack at the end ensures
60
+ # we still own any new files at the end of this run
61
61
docker run \
62
62
--env " DOTNET_VERSION" \
63
63
--name test-runner \
64
64
--volume $REPO_BINDING \
65
65
--rm \
66
66
elastic/elasticsearch-net \
67
- ./build.sh $TASK " ${TASK_ARGS[@]} "
67
+ /bin/bash -c " ./build.sh $TASK ${TASK_ARGS[@]} && chown -R $( id -u ) : $( id -g ) . "
Original file line number Diff line number Diff line change 38
38
token : ${{ secrets.GITHUB_TOKEN }}
39
39
branch : " fix/${{ matrix.branch }}/code-gen"
40
40
base : " ${{ matrix.branch }}"
41
+ delete-branch : true
41
42
commit-message : " [codegen] ${{ matrix.branch }} synchronization"
42
43
title : ' [codegen] ${{ matrix.branch }} synchronization'
43
44
body : |
You can’t perform that action at this time.
0 commit comments