percy / exec-action

A (deprecated) GitHub action to run Percy Agent `percy exec` commands
https://docs.percy.io/docs/github-actions#section-exec-action
MIT License
8 stars 5 forks source link

fix: Support scheduled jobs (or jobs without payloads) #10

Closed Robdel12 closed 4 years ago

Robdel12 commented 4 years ago

What is this?

If you run scheduled jobs from actions, they don't have a payload associated with them. Right now this action needs a payload to run correctly, so this PR allows the action to gracefully run without that payload.

It seems this job won't kick off unless it's on master? So I'll make another PR reverting the schedule after merge (and verifying this 100% does work). FWIW, it no longer errors when running locally:

image

See: https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#scheduled-events-schedule