Skip to content

Commit

Permalink
Seperate Browserslist DB update into monthly CI (k3s-io#386)
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Nola <[email protected]>
  • Loading branch information
dereknola authored Feb 18, 2025
1 parent 45878fb commit 59daf12
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/browserlist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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@v4
- 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@v7
with:
commit-message: update release-notes/k3s-*.md
title: Update Browsers List DB ${{ steps.date.outputs.month_year }}
body: Automated npx update-browserslist-db@latest
branch: update-browserslist-db
signoff: true
2 changes: 0 additions & 2 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ jobs:
pip install codespell
- name: Run codespell
run: codespell
- 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
Expand Down

0 comments on commit 59daf12

Please sign in to comment.