Skip to content

cssjessica/actions-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Schedule a Python script with GitHub Actions

This example shows how to run a Python script as cron job with GitHub Actions. It calls an API, logs the response in status.log, and automatically pushes the changes to this repo.

  • Implement script in main.py
  • Inspect and configure cron job in GitHub Action .github/workflows/actions.yml
  • It can install and use third party packages from requirements.txt
  • Secret environment variables can be used. Set secrets in Settings/Secrets/Actions -> 'New repository secret'. Use the same secret name inside actions.yml and main.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages