Skip to content

Commit 989bf70

Browse files
Merge pull request #587 from Azure/update_pinned_libs
Automated workflow to update pinned library versions
2 parents 998bead + a11e981 commit 989bf70

File tree

2 files changed

+39
-60
lines changed

2 files changed

+39
-60
lines changed

.github/workflows/update-pinned-libs.yml

Lines changed: 39 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -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"

tests/command_list

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ applygnupgdefaults
3535
apropos
3636
ar
3737
arch
38-
aria_s3_copy
3938
arp
4039
arpaname
4140
arping
@@ -766,34 +765,14 @@ mapfile
766765
mariadb
767766
mariadb-access
768767
mariadb-admin
769-
mariadb-backup
770768
mariadb-binlog
771769
mariadb-check
772-
mariadb-client-test
773-
mariadb-client-test-embedded
774-
mariadb-conv
775-
mariadb-convert-table-format
776-
mariadbd-multi
777-
mariadbd-safe
778-
mariadbd-safe-helper
779770
mariadb-dump
780-
mariadb-dumpslow
781-
mariadb-embedded
782771
mariadb-find-rows
783-
mariadb-fix-extensions
784-
mariadb-hotcopy
785772
mariadb-import
786-
mariadb-install-db
787-
mariadb-ldb
788773
mariadb-plugin
789-
mariadb-secure-installation
790-
mariadb-setpermission
791774
mariadb-show
792775
mariadb-slap
793-
mariadb-test
794-
mariadb-test-embedded
795-
mariadb-tzinfo-to-sql
796-
mariadb-upgrade
797776
mariadb-waitpid
798777
matchpathcon
799778
mcookie
@@ -850,30 +829,18 @@ mv
850829
mvn
851830
mvnDebug
852831
mvnyjp
853-
myrocks_hotbackup
854832
mysql
855833
mysqlaccess
856834
mysqladmin
857835
mysqlbinlog
858836
mysqlcheck
859-
mysql_client_test
860-
mysql_client_test_embedded
861-
mysql_convert_table_format
862837
mysqldump
863-
mysql_embedded
864838
mysql_find_rows
865-
mysql_fix_extensions
866839
mysqlimport
867-
mysql_ldb
868840
mysql_plugin
869-
mysql_setpermission
870841
mysqlshow
871842
mysqlslap
872-
mysqltest
873-
mysqltest_embedded
874-
mysql_upgrade
875843
mysql_waitpid
876-
mytop
877844
named-checkzone
878845
named-compilezone
879846
named-nzd2nzf
@@ -944,7 +911,6 @@ peekfd
944911
perl
945912
perl5.38.2
946913
perldoc
947-
perror
948914
pfbtops
949915
pg_amcheck
950916
pg_archivecleanup
@@ -1199,7 +1165,6 @@ ssh-agent
11991165
ssh-copy-id
12001166
ssh-keygen
12011167
ssh-keyscan
1202-
sst_dump
12031168
start-puppet-agent
12041169
stat
12051170
stdbuf

0 commit comments

Comments
 (0)