File tree Expand file tree Collapse file tree 2 files changed +17
-18
lines changed
Expand file tree Collapse file tree 2 files changed +17
-18
lines changed Original file line number Diff line number Diff line change @@ -40,18 +40,27 @@ runs:
4040 - uses : actions/setup-python@v5
4141 with :
4242 python-version : 3.12
43- - name : Install dependency
43+ - name : Copy python script
4444 shell : bash
4545 run : |
4646 # repository root
4747 cd ${{ github.action_path }}/../../
48- pip install hermetic_build/common
49- pip install hermetic_build/release_note_generation
48+ rsync -av \
49+ --exclude=hermetic_build/library_generation \
50+ --exclude=hermetic_build/common/tests \
51+ --exclude=hermetic_build/release_note_generation/tests \
52+ hermetic_build/ "${GITHUB_WORKSPACE}"
5053 - name : Copy shell script
5154 shell : bash
5255 run : |
5356 cd ${{ github.action_path }}
54- cp hermetic_library_generation.sh $GITHUB_WORKSPACE
57+ cp hermetic_library_generation.sh "${GITHUB_WORKSPACE}"
58+ - name : Install python package
59+ shell : bash
60+ run : |
61+ cd "${GITHUB_WORKSPACE}"
62+ pip install hermetic_build/common
63+ pip install hermetic_build/release_note_generation
5564 - name : Generate changed libraries
5665 shell : bash
5766 run : |
Original file line number Diff line number Diff line change @@ -106,26 +106,16 @@ docker run \
106106 --current-generation-config-path=" ${workspace_name} /${generation_config} " \
107107 --api-definitions-path=" ${workspace_name} /googleapis"
108108
109- # generate pr description
110- docker run \
111- --rm \
112- --quiet \
113- -u " $( id -u) :$( id -g) " \
114- -v " $( pwd) :${workspace_name} " \
115- -e GENERATOR_VERSION=" ${image_tag} " \
116- --entrypoint python \
117- gcr.io/cloud-devrel-public-resources/java-library-generation:" ${image_tag} " \
118- /src/release_note_generation/cli/generate_release_note.py generate \
119- --baseline-generation-config-path=" ${workspace_name} /${baseline_generation_config} " \
120- --current-generation-config-path=" ${workspace_name} /${generation_config} " \
121- --repository-path=" ${workspace_name} "
109+ python hermetic_build/release_note_generation/cli/generate_release_note.py generation \
110+ --baseline-generation-config-path=" ${baseline_generation_config} " \
111+ --current-generation-config-path=" ${generation_config} "
122112
123113# remove api definitions after generation
124114rm -rf " ${api_def_dir} "
125115
126116# commit the change to the pull request.
127117rm -rdf output googleapis " ${baseline_generation_config} "
128- git add --all -- ' :!pr_description.txt' ' :!hermetic_library_generation.sh'
118+ git add --all -- ' :!pr_description.txt' ' :!hermetic_library_generation.sh' ' :!hermetic_build '
129119changed_files=$( git diff --cached --name-only)
130120if [[ " ${changed_files} " != " " ]]; then
131121 echo " Commit changes..."
You can’t perform that action at this time.
0 commit comments