2022-11-24 13:43:36 +01:00
|
|
|
name: OpenSSL update
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
# Run once a week at 00:05 AM UTC on Sunday.
|
|
|
|
- cron: 5 0 * * 0
|
|
|
|
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
2023-06-19 14:53:09 +02:00
|
|
|
openssl-v3-update:
|
2022-11-24 13:43:36 +01:00
|
|
|
if: github.repository == 'nodejs/node'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-11-04 07:36:04 +01:00
|
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
2022-11-24 13:43:36 +01:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
|
|
|
- name: Check and download new OpenSSL version
|
|
|
|
run: |
|
2023-06-19 14:53:09 +02:00
|
|
|
./tools/dep_updaters/update-openssl.sh download_v3 > temp-output
|
|
|
|
cat temp-output
|
|
|
|
tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
|
|
|
|
rm temp-output
|
2022-11-24 13:43:36 +01:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
|
|
|
|
- name: Create PR with first commit
|
2023-06-19 14:53:09 +02:00
|
|
|
if: env.NEW_VERSION
|
2023-06-09 13:54:02 +02:00
|
|
|
uses: gr2m/create-or-update-pull-request-action@77596e3166f328b24613f7082ab30bf2d93079d5
|
2022-11-24 13:43:36 +01:00
|
|
|
# Creates a PR with the new OpenSSL source code committed
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
|
|
|
|
with:
|
|
|
|
author: Node.js GitHub Bot <github-bot@iojs.org>
|
|
|
|
body: This is an automated update of OpenSSL to ${{ env.NEW_VERSION }}.
|
|
|
|
branch: actions/tools-update-openssl # Custom branch *just* for this Action.
|
|
|
|
commit-message: 'deps: upgrade openssl sources to quictls/openssl-${{ env.NEW_VERSION }}'
|
|
|
|
labels: dependencies
|
|
|
|
title: 'deps: update OpenSSL to ${{ env.NEW_VERSION }}'
|
|
|
|
path: deps/openssl
|
2023-04-21 16:38:48 +02:00
|
|
|
update-pull-request-title-and-body: true
|
2022-11-24 13:43:36 +01:00
|
|
|
- name: Regenerate platform specific files
|
2023-06-19 14:53:09 +02:00
|
|
|
if: env.NEW_VERSION
|
2022-11-24 13:43:36 +01:00
|
|
|
run: |
|
|
|
|
sudo apt install -y nasm libtext-template-perl
|
|
|
|
./tools/dep_updaters/update-openssl.sh regenerate
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
|
|
|
|
- name: Add second commit
|
|
|
|
# Adds a second commit to the PR with the generated platform-dependent files
|
2023-06-19 14:53:09 +02:00
|
|
|
if: env.NEW_VERSION
|
2023-06-09 13:54:02 +02:00
|
|
|
uses: gr2m/create-or-update-pull-request-action@77596e3166f328b24613f7082ab30bf2d93079d5
|
2022-11-24 13:43:36 +01:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
|
|
|
|
with:
|
|
|
|
author: Node.js GitHub Bot <github-bot@iojs.org>
|
|
|
|
branch: actions/tools-update-openssl # Custom branch *just* for this Action.
|
|
|
|
commit-message: 'deps: update archs files for openssl-${{ env.NEW_VERSION }}'
|
|
|
|
path: deps/openssl
|
2023-06-19 14:53:09 +02:00
|
|
|
openssl-v1-update:
|
|
|
|
if: github.repository == 'nodejs/node'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-11-04 07:36:04 +01:00
|
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
2023-06-19 14:53:09 +02:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
|
|
|
ref: v16.x-staging
|
|
|
|
- name: Check and download new OpenSSL version
|
|
|
|
run: |
|
|
|
|
./tools/dep_updaters/update-openssl.sh download_v1 > temp-output
|
|
|
|
cat temp-output
|
|
|
|
tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
|
|
|
|
rm temp-output
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
|
|
|
|
- name: Create PR with first commit
|
|
|
|
if: env.NEW_VERSION
|
|
|
|
uses: gr2m/create-or-update-pull-request-action@df20b2c073090271599a08c55ae26e0c3522b329 # v1.9.2
|
|
|
|
# Creates a PR with the new OpenSSL source code committed
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
|
|
|
|
with:
|
|
|
|
author: Node.js GitHub Bot <github-bot@iojs.org>
|
|
|
|
body: This is an automated update of OpenSSL to ${{ env.NEW_VERSION }}.
|
|
|
|
branch: actions/tools-update-openssl-v1 # Custom branch *just* for this Action.
|
|
|
|
commit-message: 'deps: upgrade openssl sources to quictls/openssl-${{ env.NEW_VERSION }}'
|
|
|
|
labels: dependencies
|
|
|
|
title: '[v16.x] deps: update OpenSSL to ${{ env.NEW_VERSION }}'
|
|
|
|
path: deps/openssl
|
|
|
|
update-pull-request-title-and-body: true
|
|
|
|
- name: Regenerate platform specific files
|
|
|
|
if: env.NEW_VERSION
|
|
|
|
run: |
|
|
|
|
sudo apt install -y nasm libtext-template-perl
|
|
|
|
./tools/dep_updaters/update-openssl.sh regenerate
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
|
|
|
|
- name: Add second commit
|
|
|
|
# Adds a second commit to the PR with the generated platform-dependent files
|
|
|
|
if: env.NEW_VERSION
|
|
|
|
uses: gr2m/create-or-update-pull-request-action@df20b2c073090271599a08c55ae26e0c3522b329 # v1.9.2
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
|
|
|
|
with:
|
|
|
|
author: Node.js GitHub Bot <github-bot@iojs.org>
|
|
|
|
branch: actions/tools-update-openssl-v1 # Custom branch *just* for this Action.
|
|
|
|
commit-message: 'deps: update archs files for openssl-${{ env.NEW_VERSION }}'
|
|
|
|
path: deps/openssl
|