-
Notifications
You must be signed in to change notification settings - Fork 190
30 lines (30 loc) · 1.04 KB
/
browserlist.yml
File metadata and controls
30 lines (30 loc) · 1.04 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
name: Update Browserslist
on:
workflow_dispatch: {}
schedule:
- cron: '0 6 3 * *' # Every 3rd day of Month at 6:00 AM
permissions:
contents: write
pull-requests: write
jobs:
browserlist:
if: github.repository == 'k3s-io/docs'
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Enable Corepack for Modern Yarn
run: corepack enable
- name: Update Browserlist
run: npx update-browserslist-db@latest
- name: Get current month and year
id: date
run: echo "month_year=$(date +'%B %Y')" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@22a9089034f40e5a961c8808d113e2c98fb63676 # v7
with:
commit-message: update browserlist db
title: Update Browsers List DB ${{ steps.date.outputs.month_year }}
body: Automated npx update-browserslist-db@latest
branch: update-browserslist-db
signoff: true