diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml new file mode 100644 index 0000000..361b803 --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,27 @@ +name: Mirror + +on: + schedule: + - cron: '0 10 * * *' + workflow_dispatch: + +jobs: + mirror: + runs-on: ubuntu-latest + + permissions: + contents: write + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Mirror + uses: codewurker/woo-plugin-mirror-action@main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + woo-access-token: ${{ secrets.WOOCOMMERCE_HELPER_ACCESS_TOKEN }} + woo-access-token-secret: ${{ secrets.WOOCOMMERCE_HELPER_ACCESS_TOKEN_SECRET }} + woo-product-id: 178477 + plugin-basename: woocommerce-pre-orders/woocommerce-pre-orders.php