Skip to content

Commit 9fbc3f2

Browse files
chore: use composite action (#1694)
* chore: use composite action * update renovate config * chore: generate libraries at Thu Sep 26 00:07:55 UTC 2024 --------- Co-authored-by: cloud-java-bot <[email protected]>
1 parent 04c5435 commit 9fbc3f2

File tree

156 files changed

+174
-286
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+174
-286
lines changed

.github/scripts/hermetic_library_generation.sh

Lines changed: 0 additions & 117 deletions
This file was deleted.

.github/workflows/hermetic_library_generation.yaml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,29 @@ name: Hermetic library generation upon generation config change through pull req
1717
on:
1818
pull_request:
1919

20+
env:
21+
REPO_FULL_NAME: ${{ github.event.pull_request.head.repo.full_name }}
22+
GITHUB_REPOSITORY: ${{ github.repository }}
2023
jobs:
2124
library_generation:
22-
# skip pull requests come from a forked repository
23-
if: github.event.pull_request.head.repo.full_name == github.repository
2425
runs-on: ubuntu-latest
2526
steps:
27+
- name: Determine whether the pull request comes from a fork
28+
run: |
29+
if [[ "${GITHUB_REPOSITORY}" != "${REPO_FULL_NAME}" ]]; then
30+
echo "This PR comes from a fork. Skip library generation."
31+
echo "SHOULD_RUN=false" >> $GITHUB_ENV
32+
else
33+
echo "SHOULD_RUN=true" >> $GITHUB_ENV
34+
fi
2635
- uses: actions/checkout@v4
36+
if: env.SHOULD_RUN == 'true'
2737
with:
2838
fetch-depth: 0
2939
token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
30-
- name: Generate changed libraries
31-
shell: bash
32-
run: |
33-
set -x
34-
[ -z "$(git config user.email)" ] && git config --global user.email "[email protected]"
35-
[ -z "$(git config user.name)" ] && git config --global user.name "cloud-java-bot"
36-
bash .github/scripts/hermetic_library_generation.sh \
37-
--target_branch ${{ github.base_ref }} \
38-
--current_branch ${{ github.head_ref }}
39-
env:
40-
GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
40+
- uses: googleapis/sdk-platform-java/.github/[email protected]
41+
if: env.SHOULD_RUN == 'true'
42+
with:
43+
base_ref: ${{ github.base_ref }}
44+
head_ref: ${{ github.head_ref }}
45+
token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-logging'
5959
If you are using Gradle without BOM, add this to your dependencies:
6060

6161
```Groovy
62-
implementation 'com.google.cloud:google-cloud-logging:3.20.1'
62+
implementation 'com.google.cloud:google-cloud-logging:3.20.2'
6363
```
6464

6565
If you are using SBT, add this to your dependencies:
6666

6767
```Scala
68-
libraryDependencies += "com.google.cloud" % "google-cloud-logging" % "3.20.1"
68+
libraryDependencies += "com.google.cloud" % "google-cloud-logging" % "3.20.2"
6969
```
7070
<!-- {x-version-update-end} -->
7171

@@ -465,7 +465,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
465465
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-logging/java11.html
466466
[stability-image]: https://img.shields.io/badge/stability-stable-green
467467
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-logging.svg
468-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-logging/3.20.1
468+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-logging/3.20.2
469469
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
470470
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
471471
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDataset.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/logging/v2/logging_config.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.logging.v2;
2121

2222
/**

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDatasetOrBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/logging/v2/logging_config.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.logging.v2;
2121

2222
public interface BigQueryDatasetOrBuilder

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/logging/v2/logging_config.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.logging.v2;
2121

2222
/**

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptionsOrBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/logging/v2/logging_config.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.logging.v2;
2121

2222
public interface BigQueryOptionsOrBuilder

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadata.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/logging/v2/logging_config.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.logging.v2;
2121

2222
/**

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadataOrBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/logging/v2/logging_config.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.logging.v2;
2121

2222
public interface BucketMetadataOrBuilder

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/logging/v2/logging_config.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.logging.v2;
2121

2222
/**

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsOrBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/logging/v2/logging_config.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.logging.v2;
2121

2222
public interface CmekSettingsOrBuilder

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/logging/v2/logging_config.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.logging.v2;
2121

2222
/**

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/logging/v2/logging_config.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.logging.v2;
2121

2222
public interface CopyLogEntriesMetadataOrBuilder

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/logging/v2/logging_config.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.logging.v2;
2121

2222
/**

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequestOrBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/logging/v2/logging_config.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.logging.v2;
2121

2222
public interface CopyLogEntriesRequestOrBuilder

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/logging/v2/logging_config.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.logging.v2;
2121

2222
/**

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponseOrBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/logging/v2/logging_config.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.logging.v2;
2121

2222
public interface CopyLogEntriesResponseOrBuilder

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/logging/v2/logging_config.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.logging.v2;
2121

2222
/**

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequestOrBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/logging/v2/logging_config.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.logging.v2;
2121

2222
public interface CreateBucketRequestOrBuilder

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/logging/v2/logging_config.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.logging.v2;
2121

2222
/**

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequestOrBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/logging/v2/logging_config.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.logging.v2;
2121

2222
public interface CreateExclusionRequestOrBuilder

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/logging/v2/logging_config.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.logging.v2;
2121

2222
/**

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequestOrBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/logging/v2/logging_config.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.logging.v2;
2121

2222
public interface CreateLinkRequestOrBuilder

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/logging/v2/logging_metrics.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.logging.v2;
2121

2222
/**

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequestOrBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/logging/v2/logging_metrics.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.logging.v2;
2121

2222
public interface CreateLogMetricRequestOrBuilder

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/logging/v2/logging_config.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.logging.v2;
2121

2222
/**

0 commit comments

Comments
 (0)