Skip to content

Commit 59daf12

Browse files
authored
Seperate Browserslist DB update into monthly CI (#386)
Signed-off-by: Derek Nola <derek.nola@suse.com>
1 parent 45878fb commit 59daf12

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

.github/workflows/browserlist.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Update Browserslist
2+
on:
3+
workflow_dispatch: {}
4+
schedule:
5+
- cron: '0 6 3 * *' # Every 3rd day of Month at 6:00 AM
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
jobs:
10+
browserlist:
11+
if: github.repository == 'k3s-io/docs'
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Check out repository code
15+
uses: actions/checkout@v4
16+
- name: Update Browserlist
17+
run: npx update-browserslist-db@latest
18+
- name: Get current month and year
19+
id: date
20+
run: echo "month_year=$(date +'%B %Y')" >> $GITHUB_OUTPUT
21+
- name: Create Pull Request
22+
uses: peter-evans/create-pull-request@v7
23+
with:
24+
commit-message: update release-notes/k3s-*.md
25+
title: Update Browsers List DB ${{ steps.date.outputs.month_year }}
26+
body: Automated npx update-browserslist-db@latest
27+
branch: update-browserslist-db
28+
signoff: true

.github/workflows/release-notes.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ jobs:
3232
pip install codespell
3333
- name: Run codespell
3434
run: codespell
35-
- name: Update Browserlist
36-
run: npx update-browserslist-db@latest
3735
- name: Get current month and year
3836
id: date
3937
run: echo "month_year=$(date +'%B %Y')" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)