@@ -81,30 +81,44 @@ jobs:
8181 fi
8282 echo "Updated ISTIO_VERSION to ${LATEST}"
8383
84+ - name : Create and push branch with updates
85+ if : steps.compare-istio.outputs.needs_update == 'true'
86+ run : |
87+ BRANCH_NAME="update-pinned-libs-$(date +%Y%m%d)"
88+ git config user.name "github-actions[bot]"
89+ git config user.email "github-actions[bot]@users.noreply.github.com"
90+ git checkout -b "$BRANCH_NAME"
91+ git add linux/base.Dockerfile
92+ git commit -m "Upkeep: Update pinned library versions"
93+ git push origin "$BRANCH_NAME"
94+ echo "branch=$BRANCH_NAME" >> $GITHUB_OUTPUT
95+ id : push-branch
96+
8497 - name : Create Pull Request
8598 if : steps.compare-istio.outputs.needs_update == 'true'
86- uses : peter-evans/create-pull-request@v6
87- with :
88- token : ${{ secrets.GITHUB_TOKEN }}
89- commit-message : " chore: update pinned library versions"
90- title : " chore: update pinned library versions"
91- body : |
92- ## Automated Library Version Updates
93-
94- This PR updates the following pinned library versions:
95-
96- ${{ steps.compare-istio.outputs.needs_update == 'true' && format('- **Istio**: `{0}` → `{1}`', steps.current-istio.outputs.version, steps.latest-istio.outputs.version) || '' }}
97-
98- ### Changes
99- - Updated version variables in [linux/base.Dockerfile](linux/base.Dockerfile)
100-
101- ### Release Notes
102- ${{ steps.compare-istio.outputs.needs_update == 'true' && format('- [Istio {0}](https://github.com/istio/istio/releases/tag/{0})', steps.latest-istio.outputs.version) || '' }}
103-
104- ---
105- *This PR was automatically created by the Update Pinned Library Versions workflow.*
106- branch : update-pinned-libs-${{ github.run_number }}
107- delete-branch : true
108- labels : |
109- dependencies
110- automated
99+ env :
100+ GH_TOKEN : ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
101+ run : |
102+ CURRENT_VERSION="${{ steps.current-istio.outputs.version }}"
103+ LATEST_VERSION="${{ steps.latest-istio.outputs.version }}"
104+ BRANCH_NAME="${{ steps.push-branch.outputs.branch }}"
105+
106+ gh pr create \
107+ --title "chore: update pinned library versions" \
108+ --body "## Automated Library Version Updates
109+
110+ This PR updates the following pinned library versions:
111+
112+ - **Istio**: ${CURRENT_VERSION} to ${LATEST_VERSION}
113+
114+ ### Changes
115+ - Updated version variables in linux/base.Dockerfile
116+
117+ ### Release Notes
118+ - Istio ${LATEST_VERSION}: https://github.com/istio/istio/releases/tag/${LATEST_VERSION}
119+
120+ ---
121+ This PR was automatically created by the Update Pinned Library Versions workflow." \
122+ --base master \
123+ --head "${BRANCH_NAME}" \
124+ --label "version_upgrade,automated_pr"
0 commit comments