-
Notifications
You must be signed in to change notification settings - Fork 553
44 lines (36 loc) · 1.13 KB
/
webplat-relnotes.yaml
File metadata and controls
44 lines (36 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# This workflow checks if it's time to generate the next beta relnotes.
# And if so, it generates a draft and opens an issue to notify the team.
name: Generate beta relnotes
on:
workflow_dispatch:
schedule:
# once a day
- cron: '0 0 * * *'
permissions:
contents: write
jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install dependencies
run: |
cd scripts
npm install
- name: Generate release notes
run: |
cd scripts
token=${{ secrets.GITHUB_TOKEN }} node web-platform-release-notes.js
- name: Commit changes
run: |
if ! git diff --quiet; then
git config --local user.email "${{ github.actor }}@users.noreply.github.com"
git config --local user.name "${{ github.actor }}"
git checkout -b web-platform-release-notes
git add .
git commit -m "New beta web platform release notes"
git push origin web-platform-release-notes
else
echo "No changes to commit."
fi