Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 26 additions & 14 deletions .github/workflows/update-platform-branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ on:
inputs:
tag:
description: "The new tag or branch to update the platform.branch property to use for targeting the RPC protocol buffers."
required: true
default: "protocol/go/v0.3.0"
# required: true
# default: "protocol/go/v0.3.0"

jobs:
update-platform-branch:
Expand All @@ -35,6 +35,14 @@ jobs:
with:
persist-credentials: true

- name: Set up GitHub CLI as Actions bot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh auth setup-git
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"

- name: Fetch latest semver tag for protocol/go
id: fetch-latest-tag
run: |
Expand Down Expand Up @@ -104,17 +112,21 @@ jobs:

- name: Create New PR
if: steps.check-pr.outputs.EXISTING_PR == ''
uses: peter-evans/create-pull-request@v7.0.8
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "fix(sdk): Updates to proto version $LATEST_TAG"
branch: update-platform-branch
title: "fix(sdk): Updates to proto version $LATEST_TAG"
body: |
This PR updates the platform.branch property in all pom.xml files to the new tag or branch: $LATEST_TAG.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
RELEASE_NOTES=$(gh release view protocol/go/$LATEST_TAG --repo opentdf/platform --json body --jq '.body')
cat <<EOF > pr_body.txt
This PR updates the platform.branch property in all pom.xml files to the new tag or branch: $LATEST_TAG.

See the release: https://github.com/opentdf/platform/releases/tag/protocol%2Fgo%2F$LATEST_TAG

See the release: https://github.com/opentdf/platform/releases/tag/$LATEST_TAG
Release Notes:
$RELEASE_NOTES
EOF
gh pr create \
--title "fix(sdk): Updates to proto version $LATEST_TAG" \
--body-file pr_body.txt \
--head update-platform-branch \
--base main \

Release Notes:
$RELEASE_NOTES
labels: "automated-update"
2 changes: 1 addition & 1 deletion examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.release>11</maven.compiler.release>
<platform.branch>protocol/go/v0.3.0</platform.branch>
<platform.branch>v0.13.0</platform.branch>
</properties>

<dependencyManagement>
Expand Down
2 changes: 1 addition & 1 deletion sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<kotlin.version>2.1.0</kotlin.version>
<connect.version>0.7.2</connect.version>
<okhttp.version>4.12.0</okhttp.version>
<platform.branch>protocol/go/v0.11.0</platform.branch>
<platform.branch>v0.13.0</platform.branch>
</properties>
<dependencies>
<!-- Logging Dependencies -->
Expand Down