GithubHelp home page GithubHelp logo

c2corg / browserslist-update-action Goto Github PK

View Code? Open in Web Editor NEW
36.0 36.0 7.0 3.7 MB

A Github Action that runs `npx update-browserslist-db@latest` on a repository and proposes a pull request to merge updates.

License: MIT License

JavaScript 0.03% Shell 0.01% TypeScript 99.95%
github-actions

browserslist-update-action's People

Contributors

ai avatar brunobesson avatar coliff avatar dependabot[bot] avatar hongaar avatar jcfranco avatar nfmohit avatar umens avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

browserslist-update-action's Issues

Issue using action with Node 14

Very much appreciate this action; I've been adding it to many of my org's repos since I found out about it.

Is there any way to specify the version of Node this action should use? I have a project that can't yet be migrated to Node 16 and the npm install fails in this action.
Thanks!

Issues adding reviewers

When trying to create a PR, the action is failing with:

adding reviewers to the PR
Error: Request failed due to following response errors:
 - Could not resolve to a node with the global id of 'MatthewMaclean'

The PR is created, but no reviewers are added. My action looks like:

name: Update Browserslist database

on:
 schedule:
   # Every 1st and 15th day of the month at noon UTC
   - cron: '0 12 1,15 * *'

permissions:
 contents: write
 pull-requests: write

jobs:
 update-browserslist-database:
   runs-on: ubuntu-latest
   steps:
     - name: Checkout repository
       uses: actions/checkout@v3
       with:
         fetch-depth: 0
     - name: Configure git
       run: |
         git config --global user.email "[email protected]"
         git config --global user.name "GitHub Action"
     - name: Update Browserslist database and create PR if applies
       uses: c2corg/browserslist-update-action@0e432e6c50c3c06fcb785a3ba475d462dd93272e
       timeout-minutes: 15
       with:
         github_token: ${{ secrets.GITHUB_TOKEN }}
         branch: browserslist-update
         base_branch: main
         commit_message: 'Chore: Update Browserslist db'
         title: 'Chore: Update Browserslist db'
         body: Auto-generated. See https://github.com/browserslist/update-db#why-you-need-to-call-it-regularly
         labels: 'github-action'
         reviewers: 'MatthewMaclean'

Is it possibly an issue with using GITHUB_TOKEN and I need to use a PAT instead? Interested if someone else has this working.

Add browsers changes

Thanks for amazing project. I added it to Browserslist docs.

Right now, browserslist --update-db prints how DB update changed target browser (to explain why it is important to update DB).

Am I right that PR text is static? Can we add diff code section with the data from browserslist --update-db?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.