Skip to content

Update browserslist regex #31

Update browserslist regex

Update browserslist regex #31

name: Update browserslist regex
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 1" # Every Monday at midnight
jobs:
update-browserslist-regex:
name: Update browserslist regex
if: github.repository == ${{ github.event.repository.full_name }}

Check warning on line 11 in .github/workflows/update-browserslist.yaml

View workflow run for this annotation

GitHub Actions / Update browserslist regex

Workflow syntax warning

.github/workflows/update-browserslist.yaml (Line: 11, Col: 9): Conditional expression contains literal text outside replacement tokens. This will cause the expression to always evaluate to truthy. Did you mean to put the entire expression inside ${{ }}?
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v4
- name: Update browserslist
run: ./bin/update-browsers.sh
- name: Create pull request
uses: peter-evans/create-pull-request@v7
with:
branch: update-browserslist
commit-message: "Update browser regex from browserslist"
title: "[browserslist] Update browser regex"
body: "Automated update of browser regex from browserslist."
base: main
signoff: true
delete-branch: true