Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
devops(gha): allow workflow_dispatch in roll browser script (#34531)
Max Schmitt6c2c90203e21
diff --git a/.github/workflows/roll_browser_into_playwright.yml b/.github/workflows/roll_browser_into_playwright.ymlindex e24d015cf8..88fae9c031 100644--- a/.github/workflows/roll_browser_into_playwright.yml+++ b/.github/workflows/roll_browser_into_playwright.yml@@ -3,9 +3,21 @@ name: Roll Browser into Playwrighton:repository_dispatch:types: [roll_into_pw]+ workflow_dispatch:+ inputs:+ browser:+ description: 'Browser name, e.g. chromium'+ required: true+ type: string+ revision:+ description: 'Browser revision without v prefix, e.g. 1234'+ required: true+ type: stringenv:ELECTRON_SKIP_BINARY_DOWNLOAD: 1+ BROWSER: ${{ github.event.client_payload.browser || github.event.inputs.browser }}+ REVISION: ${{ github.event.client_payload.revision || github.event.inputs.revision }}permissions:contents: write@@ -24,19 +36,19 @@ jobs:run: npx playwright install-deps- name: Roll to new revisionrun: |- ./utils/roll_browser.js ${{ github.event.client_payload.browser }} ${{ github.event.client_payload.revision }}+ ./utils/roll_browser.js $BROWSER $REVISIONnpm run build- name: Prepare branchid: prepare-branchrun: |- BRANCH_NAME="roll-into-pw-${{ github.event.client_payload.browser }}/${{ github.event.client_payload.revision }}"+ BRANCH_NAME="roll-into-pw-${BROWSER}/${REVISION}"echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_OUTPUTgit config --global user.name github-actionsgit config --global user.email 41898282+github-actions[bot]@users.noreply.github.comgit checkout -b "$BRANCH_NAME"git add .- git commit -m "feat(${{ github.event.client_payload.browser }}): roll to r${{ github.event.client_payload.revision }}"- git push origin $BRANCH_NAME+ git commit -m "feat(${BROWSER}): roll to r${REVISION}"+ git push origin $BRANCH_NAME --force- name: Create Pull Requestuses: actions/github-script@v7with:@@ -47,7 +59,7 @@ jobs:repo: 'playwright',head: 'microsoft:${{ steps.prepare-branch.outputs.BRANCH_NAME }}',base: 'main',- title: 'feat(${{ github.event.client_payload.browser }}): roll to r${{ github.event.client_payload.revision }}',+ title: 'feat(${{ env.BROWSER }}): roll to r${{ env.REVISION }}',});await github.rest.issues.addLabels({owner: 'microsoft',