Skip to content

Commit 93d6d56

Browse files
authored
Merge pull request #2603 from nschonni/release-keys-ci
chore: add automation for release keys
2 parents 6f4f11a + 19c75b5 commit 93d6d56

2 files changed

Lines changed: 58 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Automatically update Node.js team release keys
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 12 * * 1'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
if: github.repository_owner == 'nodejs'
12+
permissions:
13+
pull-requests: write
14+
15+
steps:
16+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
17+
18+
- name: Run automation script
19+
run: ./update-keys.sh
20+
21+
- name: Create update PR
22+
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
23+
with:
24+
token: ${{ secrets.GH_API_TOKEN }}
25+
author: 'Node.js GitHub Bot <nodejs-github-bot@users.noreply.github.com>'
26+
branch: keys-branch
27+
base: main
28+
commit-message: 'chore: Node.js release key sync'
29+
title: 'chore: Node.js release key sync'
30+
body: Open based on changes from `update-keys.sh`. For details on whose key is changing, look at https://github.com/nodejs/node#release-keys
31+
delete-branch: true
32+
team-reviewers: |
33+
nodejs/docker
34+
nodejs/releasers

.github/workflows/node-keys.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Node.js Release Key Check
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- keys/node.keys
7+
- .github/workflows/node-keys.yml
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
if: github.repository_owner == 'nodejs'
16+
17+
steps:
18+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
19+
20+
- name: Run automation script
21+
run: ./update-keys.sh
22+
23+
- name: Ensure no git changes
24+
run: git diff --exit-code

0 commit comments

Comments
 (0)