@@ -10,7 +10,7 @@ permissions:
1010 contents : read
1111
1212jobs :
13- openssl-v3- update :
13+ openssl-update :
1414 if : github.repository == 'nodejs/node'
1515 runs-on : ubuntu-latest
1616 steps :
1919 persist-credentials : false
2020 - name : Check and download new OpenSSL version
2121 run : |
22- ./tools/dep_updaters/update-openssl.sh download_v3 > temp-output
22+ ./tools/dep_updaters/update-openssl.sh download > temp-output
2323 cat temp-output
2424 tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
2525 rm temp-output
5858 branch : actions/tools-update-openssl # Custom branch *just* for this Action.
5959 commit-message : ' deps: update archs files for openssl-${{ env.NEW_VERSION }}'
6060 path : deps/openssl
61- openssl-v1-update :
62- if : github.repository == 'nodejs/node'
63- runs-on : ubuntu-latest
64- steps :
65- - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
66- with :
67- persist-credentials : false
68- ref : v16.x-staging
69- - name : Check and download new OpenSSL version
70- run : |
71- ./tools/dep_updaters/update-openssl.sh download_v1 > temp-output
72- cat temp-output
73- tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
74- rm temp-output
75- env :
76- GITHUB_TOKEN : ${{ secrets.GH_USER_TOKEN }}
77- - name : Create PR with first commit
78- if : env.NEW_VERSION
79- uses : gr2m/create-or-update-pull-request-action@df20b2c073090271599a08c55ae26e0c3522b329 # v1.9.2
80- # Creates a PR with the new OpenSSL source code committed
81- env :
82- GITHUB_TOKEN : ${{ secrets.GH_USER_TOKEN }}
83- with :
84- author : Node.js GitHub Bot <github-bot@iojs.org>
85- body : This is an automated update of OpenSSL to ${{ env.NEW_VERSION }}.
86- branch : actions/tools-update-openssl-v1 # Custom branch *just* for this Action.
87- commit-message : ' deps: upgrade openssl sources to quictls/openssl-${{ env.NEW_VERSION }}'
88- labels : dependencies
89- title : ' [v16.x] deps: update OpenSSL to ${{ env.NEW_VERSION }}'
90- path : deps/openssl
91- update-pull-request-title-and-body : true
92- - name : Regenerate platform specific files
93- if : env.NEW_VERSION
94- run : |
95- sudo apt install -y nasm libtext-template-perl
96- ./tools/dep_updaters/update-openssl.sh regenerate
97- env :
98- GITHUB_TOKEN : ${{ secrets.GH_USER_TOKEN }}
99- - name : Add second commit
100- # Adds a second commit to the PR with the generated platform-dependent files
101- if : env.NEW_VERSION
102- uses : gr2m/create-or-update-pull-request-action@df20b2c073090271599a08c55ae26e0c3522b329 # v1.9.2
103- env :
104- GITHUB_TOKEN : ${{ secrets.GH_USER_TOKEN }}
105- with :
106- author : Node.js GitHub Bot <github-bot@iojs.org>
107- branch : actions/tools-update-openssl-v1 # Custom branch *just* for this Action.
108- commit-message : ' deps: update archs files for openssl-${{ env.NEW_VERSION }}'
109- path : deps/openssl
0 commit comments