@@ -76,14 +76,14 @@ jobs:
7676 sed -i -e "s/^googleapis_commitish.*$/googleapis_commitish: ${{ steps.commit.outputs.new_commit }}/" generation_config.yaml
7777 echo "After update:"
7878 grep "^googleapis_commitish" generation_config.yaml
79- - name : Detect Changes To Configs
80- id : detect_config
79+ - name : Detect Changes To Librarian.yaml
80+ id : detect_librarian
8181 run : |
82- git add librarian.yaml generation_config.yaml
82+ git add librarian.yaml
8383 changed_files=$(git diff --cached --name-only)
8484 if [[ "${changed_files}" == "" ]]; then
8585 echo "has_changes=false" >> $GITHUB_OUTPUT
86- echo "No changes in librarian.yaml or generation_config.yaml "
86+ echo "No changes in librarian.yaml"
8787 else
8888 echo "has_changes=true" >> $GITHUB_OUTPUT
8989 fi
@@ -118,7 +118,7 @@ jobs:
118118 env :
119119 PYTHONPATH : ${{ github.workspace }}/sdk-platform-java/hermetic_build/library_generation/owlbot
120120 - name : Generate Libraries
121- if : steps.detect_config .outputs.has_changes == 'true'
121+ if : steps.detect_librarian .outputs.has_changes == 'true'
122122 id : generate
123123 run : |
124124 go run github.com/googleapis/librarian/cmd/librarian@latest generate --all
@@ -131,7 +131,7 @@ jobs:
131131 echo "has_changes=true" >> $GITHUB_OUTPUT
132132 fi
133133 - name : Commit and Create PR
134- if : steps.detect_config .outputs.has_changes == 'true' || steps.generate.outputs.has_changes == 'true'
134+ if : steps.detect_librarian .outputs.has_changes == 'true' || steps.generate.outputs.has_changes == 'true'
135135 env :
136136 GH_TOKEN : ${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }}
137137 PR_TITLE : " chore: update googleapis commitish to ${{ steps.commit.outputs.short_commit }}"
0 commit comments