Skip to content

Commit bb67a72

Browse files
fix: fix linter warnings
1 parent f177393 commit bb67a72

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

.github/workflows/codegen.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ jobs:
5656
}
5757
return result
5858
generate:
59-
uses: googleapis/google-api-java-client-services/.github/workflows/generate.yaml@build/fix-compute
59+
uses: googleapis/google-api-java-client-services/.github/workflows/generate.yaml@main
6060
needs: batch
6161
secrets: inherit
6262
# The size of the batch is implicitly decided by the hour of the day.
6363
# For example, a job starting at "1:30" uses the chunk at the index 1 in the array.
64-
if: github.event_name != 'workflow_dispatch' && ${{!!fromJson(needs.batch.outputs.services).batches[fromJson(needs.batch.outputs.services).hour]}}
64+
if: ${{ github.event_name != 'workflow_dispatch' && !!fromJson(needs.batch.outputs.services).batches[fromJson(needs.batch.outputs.services).hour] }}
6565
with:
6666
services: ${{toJson(fromJson(needs.batch.outputs.services).batches[fromJson(needs.batch.outputs.services).hour])}}
6767
generate_dispatch:

.github/workflows/generate.yaml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,18 @@ jobs:
4242
pip --version
4343
- run: ./google-api-java-client-services/.github/workflows/generate.sh ${{ matrix.service }}
4444
- uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0
45-
token: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
46-
commit-message: ${{ env.MESSAGE }}
47-
committer: ${{ env.AUTHOR }}
48-
author: ${{ env.AUTHOR }}
49-
branch: regenerate-${{ matrix.service }}
50-
title: ${{ env.MESSAGE }}
51-
body: 'Generated in GitHub action: https://github.com/${{ github.repository_owner }}/${{ github.repository }}/actions/workflows/codegen.yaml'
52-
add-paths: 'google-api-java-client-services/clients/google-api-services-${{ matrix.service }}'
53-
base: main
54-
push-to-fork: yoshi-code-bot/google-api-java-client-services
55-
5645
env:
57-
- MESSAGE: 'chore: regenerate ${{ matrix.service }} client'
58-
- AUTHOR: Yoshi Code Bot <yoshi-automation@google.com>
46+
MESSAGE: 'chore: regenerate ${{ matrix.service }} client'
47+
AUTHOR: Yoshi Code Bot <yoshi-automation@google.com>
48+
with:
49+
token: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
50+
commit-message: ${{ env.MESSAGE }}
51+
committer: ${{ env.AUTHOR }}
52+
author: ${{ env.AUTHOR }}
53+
branch: regenerate-${{ matrix.service }}
54+
title: ${{ env.MESSAGE }}
55+
body: 'Generated in GitHub action: https://github.com/${{ github.repository_owner }}/${{ github.repository }}/actions/workflows/codegen.yaml'
56+
add-paths: 'google-api-java-client-services/clients/google-api-services-${{ matrix.service }}'
57+
base: main
58+
push-to-fork: yoshi-code-bot/google-api-java-client-services
59+

0 commit comments

Comments
 (0)