Setup for Multiple Workflows
Separate the playwright-onDemand.yml file into two separate Github action files:
In the same directory as
playwright-onDemand.ymlcreate a new file namedplaywright-scheduled.ymlCopy the contents of
playwright-onDemand.ymlintoplaywright-scheduled.ymland make the following changes:Change the
namefield of the workflow fromPlaywright teststoScheduled Playwright testsRemove the following lines underneath the
onfieldpush:
branches: [ "main" ]
pull_request:
branches: [ "main" ]Under the job
testand step namedUpload HTML report as Artifactchange the value of thenamefield under thewithfield fromonDemandto${{ steps.date.outputs.date }}