Skip to content

Commit beebad9

Browse files
try switching to gh cli for pr creation
1 parent 794f6b7 commit beebad9

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

.github/workflows/update-platform-branch.yaml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -112,17 +112,21 @@ jobs:
112112
113113
- name: Create New PR
114114
if: steps.check-pr.outputs.EXISTING_PR == ''
115-
uses: peter-evans/[email protected]
116-
with:
117-
token: ${{ secrets.GITHUB_TOKEN }}
118-
commit-message: "fix(sdk): Updates to proto version $LATEST_TAG"
119-
branch: update-platform-branch
120-
title: "fix(sdk): Updates to proto version $LATEST_TAG"
121-
body: |
122-
This PR updates the platform.branch property in all pom.xml files to the new tag or branch: $LATEST_TAG.
115+
env:
116+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
117+
run: |
118+
cat <<EOF > pr_body.txt
119+
This PR updates the platform.branch property in all pom.xml files to the new tag or branch: $LATEST_TAG.
120+
121+
See the release: https://github.com/opentdf/platform/releases/tag/$LATEST_TAG
123122
124-
See the release: https://github.com/opentdf/platform/releases/tag/$LATEST_TAG
123+
Release Notes:
124+
$RELEASE_NOTES
125+
EOF
126+
gh pr create \
127+
--title "fix(sdk): Updates to proto version $LATEST_TAG" \
128+
--body-file pr_body.txt \
129+
--head update-platform-branch \
130+
--base main \
131+
--label "automated-update"
125132
126-
Release Notes:
127-
$RELEASE_NOTES
128-
labels: "automated-update"

0 commit comments

Comments
 (0)