Skip to content

Commit bc8248e

Browse files
chore: use composite action (#1728)
* chore: use composite action * update renovate config * chore: generate libraries at Thu Sep 26 00:16:22 UTC 2024 --------- Co-authored-by: cloud-java-bot <[email protected]>
1 parent ea4c741 commit bc8248e

File tree

151 files changed

+167
-279
lines changed

Some content is hidden

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

151 files changed

+167
-279
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 coming 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If you are using Maven, add this to your pom.xml file:
2020
<dependency>
2121
<groupId>com.google.cloud</groupId>
2222
<artifactId>google-cloud-pubsublite</artifactId>
23-
<version>1.14.1</version>
23+
<version>1.14.2</version>
2424
</dependency>
2525
<dependency>
2626
<groupId>com.google.cloud</groupId>

proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.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/cloud/pubsublite/v1/admin.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.cloud.pubsublite.proto;
2121

2222
public final class AdminProto {

proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValues.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/cloud/pubsublite/v1/common.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.cloud.pubsublite.proto;
2121

2222
/**

proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValuesOrBuilder.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/cloud/pubsublite/v1/common.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.cloud.pubsublite.proto;
2121

2222
public interface AttributeValuesOrBuilder

proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequest.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/cloud/pubsublite/v1/cursor.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.cloud.pubsublite.proto;
2121

2222
/**

proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequestOrBuilder.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/cloud/pubsublite/v1/cursor.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.cloud.pubsublite.proto;
2121

2222
public interface CommitCursorRequestOrBuilder

proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponse.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/cloud/pubsublite/v1/cursor.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.cloud.pubsublite.proto;
2121

2222
/**

proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.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/cloud/pubsublite/v1/cursor.proto
1818

19-
// Protobuf Java Version: 3.25.4
19+
// Protobuf Java Version: 3.25.5
2020
package com.google.cloud.pubsublite.proto;
2121

2222
public interface CommitCursorResponseOrBuilder

0 commit comments

Comments
 (0)