Skip to main content

Setup for Multiple Workflows

Separate the playwright-onDemand.yml file into two separate Github action files:

  1. In the same directory as playwright-onDemand.yml create a new file named playwright-scheduled.yml

  2. Copy the contents of playwright-onDemand.yml into playwright-scheduled.yml and make the following changes:

  3. Change the name field of the workflow from Playwright tests to Scheduled Playwright tests

  4. Remove the following lines underneath the on field

    push:
    branches: [ "main" ]
    pull_request:
    branches: [ "main" ]
  5. Under the job test and step named Upload HTML report as Artifact change the value of the name field under the with field from onDemand to ${{ steps.date.outputs.date }}