Skip to content

chore: setup reusable workflow#11117

Merged
JoeWang1127 merged 46 commits intomainfrom
chore/setup-reusable-workflow
Sep 24, 2024
Merged

chore: setup reusable workflow#11117
JoeWang1127 merged 46 commits intomainfrom
chore/setup-reusable-workflow

Conversation

@JoeWang1127
Copy link
Contributor

@JoeWang1127 JoeWang1127 commented Sep 3, 2024

In this PR:

  • Change hermetic build workflow to use action defined in sdk-platform-java to reduce code duplication.
  • Remove redundant shell script.
  • Change renovate config to update the version of the action.

Follow up: change the hermetic build workflow in handwritten libraries.

@JoeWang1127 JoeWang1127 force-pushed the chore/setup-reusable-workflow branch from 023f240 to f67ff48 Compare September 5, 2024 19:39
@JoeWang1127 JoeWang1127 reopened this Sep 8, 2024
@JoeWang1127 JoeWang1127 reopened this Sep 11, 2024
JoeWang1127 added a commit to googleapis/sdk-platform-java that referenced this pull request Sep 12, 2024
In this PR:
- Add a composite action to execute library generation shell script.
- Separate repo specific logic, e.g., installing modules, building
images, etc., in the generation shell script.

An example workflow in google-cloud-java:
googleapis/google-cloud-java#11117
ldetmer pushed a commit to googleapis/sdk-platform-java that referenced this pull request Sep 17, 2024
In this PR:
- Add a composite action to execute library generation shell script.
- Separate repo specific logic, e.g., installing modules, building
images, etc., in the generation shell script.

An example workflow in google-cloud-java:
googleapis/google-cloud-java#11117
@JoeWang1127 JoeWang1127 marked this pull request as ready for review September 24, 2024 22:01
@JoeWang1127 JoeWang1127 requested review from a team and blakeli0 September 24, 2024 22:01
"matchStrings": [
"library_generation_image_tag\\s*:\\s*(?<currentValue>.*?)\\n"
"library_generation_image_tag\\s*:\\s*(?<currentValue>.*?)\\n",
"uses: googleapis/sdk-platform-java/.github/scripts@v(?<currentValue>.+?)\\n"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! All the generator updates are grouped together! I assume the renovate config is already tested locally?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I tested the renovate using:

export LOG_LEVEL=debug && npx --yes --package renovate -- renovate --platform=local

@JoeWang1127 JoeWang1127 merged commit 7c6bfef into main Sep 24, 2024
@JoeWang1127 JoeWang1127 deleted the chore/setup-reusable-workflow branch September 24, 2024 23:34
lqiu96 pushed a commit that referenced this pull request Jul 7, 2025
* chore: setup reusable workflow

* update workflow

* update workflow

* create a reusable workflow

* create a calling workflow

* change dir

* remove workflow version

* change job name

* debug

* update googleapis commit

* add inputs

* restore googleapis commit

* update googleapis commit

* update googleapis commit

* restore googleapis commit

* remove debug setting

* start the workflow whenever there's a change

* add a composite action

* checkout early

* change path

* remove checkout depth

* checkout base ref

* use git to checkout

* use git to checkout

* use composite action

* change env

* change seq

* use cp

* use composite action

* add ref

* use reusable workflow

* use reusable workflow

* change name

* remove runs-on

* restore

* change action path

* remove generation step

* add inputs

* add inputs

* add prerequisite as the first step

* add a separate job

* add a step

* change version

* update renovate
chingor13 pushed a commit that referenced this pull request Mar 24, 2026
In this PR:
- Add a composite action to execute library generation shell script.
- Separate repo specific logic, e.g., installing modules, building
images, etc., in the generation shell script.

An example workflow in google-cloud-java:
#11117
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants