Skip to content

Commit

Permalink
ci: add regenerate command (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
OrKoN authored Dec 3, 2024
1 parent e56e195 commit 0c42cf7
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/regenerate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: regenerate

# Declare default permissions as read only.
permissions: read-all

on:
workflow_dispatch:
push:
branches:
- main

concurrency:
group: regenerate-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
ci:
name: '[Required] Regenerate'
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 2
- name: Install cddlconv
run: cargo install [email protected]
- name: Install dependencies
run: npm ci
- name: Build and test
run: npm test
- name: Create Pull Request
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
with:
token: ${{ secrets.BROWSER_AUTOMATION_BOT_TOKEN }}
branch: ${{ github.head_ref }}-regenerate
delete-branch: true
base: ${{ github.head_ref }}
committer: Browser Automation Bot <[email protected]>
author: Browser Automation Bot <[email protected]>
commit-message: 'fix: re-generate types based on specifciation updates'
title: 'fix: re-generate types based on specifciation updates'
body: 'Automatically generated by https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/blob/main/.github/workflows/regenerate.yml'
push-to-fork: browser-automation-bot/webdriver-bidi-protocol

0 comments on commit 0c42cf7

Please sign in to comment.