Working on releaser.
This commit is contained in:
parent
50b02db331
commit
5ec8f4c223
|
|
@ -0,0 +1,13 @@
|
|||
# WooCommerce Subscriptions Releaser
|
||||
|
||||
## WooCommerce Helper
|
||||
|
||||
> **Note**
|
||||
> WooCommerce Helper is part of WooCommerce as of version 3.1. Purchase, connect, download products, and activate keys in one place with ease. Read more at Managing WooCommerce.com subscriptions.
|
||||
|
||||
http://woodojo.s3.amazonaws.com/downloads/woothemes-updater/woothemes-updater.zip
|
||||
|
||||
## WooCommerce API
|
||||
|
||||
- https://woocommerce.com/wc-api/product-key-api
|
||||
- https://woocommerce.com/wc-api/product-key-api?request=check
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
function line( $text = '' ) {
|
||||
echo $text, PHP_EOL;
|
||||
}
|
||||
|
||||
function run( $command, &$result_code = null ) {
|
||||
line( $command );
|
||||
|
||||
$last_line = system( $command, $result_code );
|
||||
|
||||
line();
|
||||
|
||||
return $last_line;
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
name: Release
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 10 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
run: php .github/scripts/release.php
|
||||
Loading…
Reference in New Issue