Skip to content

Commit 1e08cbe

Browse files
GitHub action to generate relnotes
1 parent 81f1a8c commit 1e08cbe

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# This workflow checks if it's time to generate the next beta relnotes.
2+
# And if so, it generates the beta relnotes and opens a PR with them.
3+
4+
name: Generate beta relnotes
5+
6+
on:
7+
workflow_dispatch:
8+
schedule:
9+
# once a day
10+
- cron: '0 0 * * *'
11+
12+
permissions:
13+
contents: write
14+
pull-requests: write
15+
16+
jobs:
17+
generate:
18+
name: Check if it's time and generate beta relnotes
19+
runs-on: ubuntu
20+
steps:
21+
- name: Checkout repo
22+
uses: actions/checkout@v2
23+
- name: Install dependencies
24+
run: |
25+
cd scripts
26+
npm install
27+
- name: Run script
28+
id: generate
29+
run: |
30+
cd scripts
31+
node web-platform-release-notes.js
32+
- name: Create Pull Request
33+
uses: peter-evans/create-pull-request@v7
34+
with:
35+
token: ${{ secrets.GITHUB_TOKEN }}
36+
commit-message: "New Edge Beta web platform release notes"
37+
title: "New Edge Beta web platform release notes"
38+
body: "This PR was generated by the workflow to update the beta release notes."
39+
branch: "web-platform-release-notes"
40+
base: "main"
41+
branch-suffix: timestamp
42+
labels: "web-platform-release-notes"
43+
reviewers: "mikehoffms,captainbrosset,aluhrs13"
44+
assignees: "captainbrosset"

0 commit comments

Comments
 (0)