Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/gradle/com.fasterxml.jackson-ja…
Browse files Browse the repository at this point in the history
…ckson-bom-2.17.2
  • Loading branch information
mpeddada1 authored Aug 23, 2024
2 parents f71bdc8 + 45610ea commit b4f14f6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/jib-cli-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ jobs:
uses: repo-sync/[email protected]
id: create-pr
with:
# Use a personal token to file a PR as a non-bot author to trigger other workflows (e.g., unit tests):
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#triggering-new-workflows-using-a-personal-access-token;
github_token: ${{ secrets.GA_RELEASE_PR_PERSONAL_TOKEN }}
github_token: ${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }}
source_branch: cli-release-v${{ github.event.inputs.release_version }}
pr_title: "CLI release v${{ github.event.inputs.release_version }}"
pr_body: "To be merged after the release is complete."
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,7 @@ jobs:
uses: repo-sync/[email protected]
id: create-pr
with:
# Use a personal token to file a PR to trigger other workflows (e.g., unit tests).
# Save your access token as GA_RELEASE_PR_PERSONAL_TOKEN.
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#triggering-new-workflows-using-a-personal-access-token
# https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets
github_token: ${{ secrets.GA_RELEASE_PR_PERSONAL_TOKEN }}
github_token: ${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }}
source_branch: ${{ github.event.inputs.project }}-release-v${{ github.event.inputs.release_version }}
pr_title: "${{ github.event.inputs.project }} release v${{ github.event.inputs.release_version }}"
pr_body: "To be merged after the release is complete."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,12 @@ public boolean supported(Map<String, String> parameters) {
public DockerInfoDetails info() throws IOException, InterruptedException {
// Runs 'docker info'.
Process infoProcess = docker("info", "-f", "{{json .}}");
InputStream inputStream = infoProcess.getInputStream();
if (infoProcess.waitFor() != 0) {
throw new IOException(
"'docker info' command failed with error: " + getStderrOutput(infoProcess));
}
return JsonTemplateMapper.readJson(infoProcess.getInputStream(), DockerInfoDetails.class);
return JsonTemplateMapper.readJson(inputStream, DockerInfoDetails.class);
}

@Override
Expand Down

0 comments on commit b4f14f6

Please sign in to comment.