Skip to content

Update browser releases #62

Update browser releases

Update browser releases #62

name: Update browser releases
on:
workflow_dispatch:
schedule:
- cron: "30 4 * * 1-5"
permissions:
contents: write
pull-requests: write
jobs:
update:
if: github.repository == 'mdn/browser-compat-data'
name: Update browser releases
runs-on: ubuntu-latest
env:
RESULT: ""
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-depth: 0 # get the full repository checkout, not just the inciting commit
persist-credentials: false
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version-file: ".nvmrc"
package-manager-cache: false
- run: npm ci
- name: Run update-browser-releases script
id: update
run: |
echo "RESULT<<EOF" >> "$GITHUB_OUTPUT"
npm run update-browser-releases -- --all >> "$GITHUB_OUTPUT"
echo "EOF" >> "$GITHUB_OUTPUT"
- name: Create Pull Request
uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0
with:
token: ${{ secrets.GH_TOKEN }} # need the rights to create and edit PRs
commit-message: Update browser releases
author: mdn-bot <[email protected]>
signoff: false
branch: browser-releases
delete-branch: true
add-paths: browsers/*.json # Only include files in that directory
title: "Update browser releases"
body: |
The output of the `update-browser-releases` script is:
${{ steps.update.outputs.RESULT }}
draft: false