{"id":23380494,"url":"https://github.com/liamseck/woocommerce-gha-triggers","last_synced_at":"2026-05-09T16:07:21.563Z","repository":{"id":266316373,"uuid":"897937212","full_name":"LiamSeck/WooCommerce-GHA-Triggers","owner":"LiamSeck","description":"Testing GHA Crons to Trigger WooCommerce Actions","archived":false,"fork":false,"pushed_at":"2025-07-13T12:48:39.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T23:32:33.804Z","etag":null,"topics":["action-scheduler","woocommerce","wordpress","wp-cli","wp-cron","wp-cron-functionality","wpengine"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LiamSeck.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-03T13:58:54.000Z","updated_at":"2025-07-13T12:48:42.000Z","dependencies_parsed_at":"2025-04-08T07:42:46.917Z","dependency_job_id":"c2b7cffa-66da-4b0b-b7c1-2d3b8e249d31","html_url":"https://github.com/LiamSeck/WooCommerce-GHA-Triggers","commit_stats":null,"previous_names":["liamseck/woocommerce-gha-triggers"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LiamSeck/WooCommerce-GHA-Triggers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiamSeck%2FWooCommerce-GHA-Triggers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiamSeck%2FWooCommerce-GHA-Triggers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiamSeck%2FWooCommerce-GHA-Triggers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiamSeck%2FWooCommerce-GHA-Triggers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LiamSeck","download_url":"https://codeload.github.com/LiamSeck/WooCommerce-GHA-Triggers/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiamSeck%2FWooCommerce-GHA-Triggers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32825656,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["action-scheduler","woocommerce","wordpress","wp-cli","wp-cron","wp-cron-functionality","wpengine"],"created_at":"2024-12-21T20:16:28.122Z","updated_at":"2026-05-09T16:07:21.529Z","avatar_url":"https://github.com/LiamSeck.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Workflow Status\n\n[![Run-5-Minutes](https://github.com/LiamSeck/WooCommerce-GHA-Triggers/actions/workflows/cron-scheduler.yml/badge.svg)](https://github.com/LiamSeck/WooCommerce-GHA-Triggers/actions/workflows/cron-scheduler.yml) [![CodeQL Advanced](https://github.com/LiamSeck/WooCommerce-GHA-Triggers/actions/workflows/codeql.yml/badge.svg)](https://github.com/LiamSeck/WooCommerce-GHA-Triggers/actions/workflows/codeql.yml) [![Lint GHA Files](https://github.com/LiamSeck/WooCommerce-GHA-Triggers/actions/workflows/lint-check.yml/badge.svg)](https://github.com/LiamSeck/WooCommerce-GHA-Triggers/actions/workflows/lint-check.yml)\n\n---\n\n# WooCommerce-GHA-Triggers\nTesting GitHub Actions to trigger the WooCommerce [Action Scheduler](https://actionscheduler.org/wp-cli/) and scheduled [WordPress Cron](https://developer.wordpress.org/cli/commands/cron/event/run/) events via [WP-CLI](https://wp-cli.org/) utilising the WP Engine [SSH Gateway](https://wpengine.com/support/ssh-gateway/).\n\n---\n# WordPress Cron Automation with GitHub Actions and WP Engine\n#### Version 0.1 \n#### Created by Liam Seck\n\nThis implementation allows you to run WordPress cron jobs reliably using GitHub Actions and WP Engine's SSH Gateway. The solution runs both `wp cron event run` and `wp action-scheduler run` commands every 5 minutes.\n\n## Prerequisites\n\n1. WP Engine hosting account\n2. GitHub repository\n3. SSH access to your WP Engine environment\n4. WP-CLI installed on your WP Engine environment (comes pre-installed)\n\n## Setup Instructions\n\n1. Generate SSH Key\n    ```bash\n    ssh-keygen -t ed25519 -f ~/.ssh/wpengine_ed25519\n    ```\n\n2. Add Public Key to WP Engine\n    * Go to https://my.wpengine.com/profile/ssh_keys\n    * Click \"New SSH Key\"\n    * Paste contents of `~/.ssh/wpengine_ed25519.pub`\n\n3. Add Private Key to GitHub\n    * Go to your GitHub repository settings\n    * Navigate to Secrets and Variables \u003e Actions\n    * Create new secret named `WPE_SSHG_KEY_PRIVATE`\n    * Paste contents of `~/.ssh/wpengine_ed25519`\n\n4. Create GitHub Action Workflow\n    * Create directory: `.github/workflows/`\n    * Add file: `run-5-minutes.yml` with provided workflow content\n    * Update `WPE_ENV` value to your WP Engine environment name\n\n5. Add Script File\n    * Create `script.sh` in repository root\n    * Copy provided script content\n    * Make executable: `chmod +x script.sh`\n\n## Verification Steps\n\n1. Test SSH Connection\n    ```bash\n    ssh {your-environment}@{your-environment}.ssh.wpengine.net\n    ```\n\n2. Manually Trigger Workflow\n    * Go to Actions tab in GitHub repository\n    * Select \"Run-5-Minutes\" workflow\n    * Click \"Run workflow\"\n\n3. Check Logs on WP Engine\n    * Connect via SSH\n    * View logs:\n        ```bash\n        cd sites/{your-environment}\n        tail -f action-scheduler-run.log\n        tail -f cron-run.log\n        ```\n\n## Monitoring\n\n* GitHub Actions logs show execution status\n* WP Engine logs track each run:\n    * `action-scheduler-run.log` - Action Scheduler tasks\n    * `action-scheduler-run-error.log` - Action Scheduler errors\n    * `cron-run.log` - WordPress cron events\n    * `cron-run-error.log` - WordPress cron errors\n\n## Security Notes\n\n* SSH key is stored securely in GitHub Secrets\n* WP Engine SSH Gateway uses key-based authentication\n* Script runs in isolated environment\n* Logs are stored in site directory for accountability\n\n## WP Engine Resources\n\n[SSH Keys for Shell Access](https://wpengine.com/support/ssh-keys-for-shell-access/)\n\n[SSH Gateway Guide](https://wpengine.com/support/ssh-gateway/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliamseck%2Fwoocommerce-gha-triggers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliamseck%2Fwoocommerce-gha-triggers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliamseck%2Fwoocommerce-gha-triggers/lists"}