Skip to content

a demonstration of running GitHub Actions on a schedule (cron task)

Notifications You must be signed in to change notification settings

edm00se/simple-action-scheduled-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Action Scheduled Demo

A simple, and somewhat contrived, demo showing the use of GitHub Actions on a schedule.

The Moving Parts

This is defined in the GitHub Action yaml file and is specified to run on schedule, as opposed to push or pull_request. This is further contrived in that npm executes the default test script, with its output of Error: no test specified.

Usage

GIF of person asking 'but why?'

If you're wondering why to use a scheduled action, there are some use cases for scheduled testing. This would likely not have anything to do with unit tests, but with integration tests or a generic browser test involving production site uptime, etc. This is not an ideal form of testing, but could be a stop gap under certain use cases.

Example

You can see the scheduled executions under the Actions tab, filtering on event:schedule.

screen shot of github actions screen for this repo, showing multiple events triggered by schedule

References

License

MIT

About

a demonstration of running GitHub Actions on a schedule (cron task)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages