-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create action to automatically migrate web-features tags to BCD
- Loading branch information
1 parent
fd96a8a
commit 3040f77
Showing
1 changed file
with
41 additions
and
0 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,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 |