Skip to content

Commit

Permalink
change git command
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeWang1127 committed May 29, 2024
1 parent 5f9f63b commit 0ef81b0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions library_generation/scripts/hermetic_library_generation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,10 @@ docker run \
gcr.io/cloud-devrel-public-resources/java-library-generation:"${image_tag}" \
--baseline-generation-config-path="${workspace_name}/${baseline_generation_config}" \
--current-generation-config-path="${workspace_name}/${generation_config}"
# gapic-libraries-bom/pom.xml is specific to google-cloud-java, only commit
# this file if it exists.
if [ -f gapic-libraries-bom/pom.xml ]; then
git add gapic-libraries-bom/pom.xml
fi

git add java-* pom.xml versions.txt
# commit the change to the pull request.
rm -rdf output googleapis "${baseline_generation_config}"
git add --all -- ':!pr_description.txt'
changed_files=$(git diff --cached --name-only)
if [[ "${changed_files}" == "" ]]; then
echo "There is no generated code change with the generation config change ${config_diff}."
Expand Down

0 comments on commit 0ef81b0

Please sign in to comment.