forked from k3s-io/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Seperate Browserslist DB update into monthly CI (k3s-io#386)
Signed-off-by: Derek Nola <[email protected]>
- Loading branch information
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters