Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create action to automatically migrate web-features tags to BCD #2471

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/update_bcd_tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Update BCD tags

on:
workflow_dispatch:

schedule:
- cron: "30 4 * * 1-5"

jobs:
update-bcd-tags:
if: github.repository == 'web-platform-dx/web-features'
name: Update BCD tags
runs-on: ubuntu-latest

steps:
- name: Checkout commit
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: npm
- run: npm i
- name: Checkout browser-compat-data
uses: actions/checkout@v4'
with:
repository: mdn/browser-compat-data
path: browser-compat-data
- name: Run migration script
run: npm run migrate-to-bcd ./browser-compat-data
- name: Create BCD PR
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GH_TOKEN }} # need the rights to create and edit PRs
commit-message: Update browser releases
path: ./browser-compat-data
signoff: false
branch: migrate-web-features
delete-branch: true
title: "Migrate web-features tags"
body: |
This PR was automatically generated by an action in [web-platform-dx/web-features](https://github.com/web-platform-dx/web-features/blob/main/.github/workflows/update_bcd_tags.yml). This PR migrates the web-features feature mapping to BCD tags.
draft: false
Loading