Setup for Multiple Workflows
Separate the playwright-onDemand.yml
file into two separate Github action files:
In the same directory as
playwright-onDemand.yml
create a new file namedplaywright-scheduled.yml
Copy the contents of
playwright-onDemand.yml
intoplaywright-scheduled.yml
and make the following changes:Change the
name
field of the workflow fromPlaywright tests
toScheduled Playwright tests
Remove the following lines underneath the
on
fieldpush:
branches: [ "main" ]
pull_request:
branches: [ "main" ]Under the job
test
and step namedUpload HTML report as Artifact
change the value of thename
field under thewith
field fromonDemand
to${{ steps.date.outputs.date }}