-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (40 loc) · 1.92 KB
/
cd_stg.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: CD STG
on:
pull_request:
branches: [ "develop" ]
types: closed
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
wordpress_version_stg: ${{ vars.wordpress_version_stg }}
woocommerce_version_stg: ${{ vars.woocommerce_version_stg }}
woocommerce_extra_checkout_fields_version_stg: ${{ vars.woocommerce_extra_checkout_fields_version_stg }}
wp_mail_catcher_version_stg: ${{ vars.wp_mail_catcher_version_stg }}
jobs:
generate-variables:
runs-on: ubuntu-latest
outputs:
wordpress_version_stg: ${{ steps.main_step.outputs.wordpress_version_stg }}
woocommerce_version_stg: ${{ steps.main_step.outputs.woocommerce_version_stg }}
woocommerce_extra_checkout_fields_version_stg: ${{ steps.main_step.outputs.woocommerce_extra_checkout_fields_version_stg }}
wp_mail_catcher_version_stg: ${{ steps.main_step.outputs.wp_mail_catcher_version_stg }}
steps:
- id: main_step
run: |
echo "wordpress_version_stg=$wordpress_version_stg" >> $GITHUB_OUTPUT
echo "woocommerce_version_stg=$woocommerce_version_stg" >> $GITHUB_OUTPUT
echo "woocommerce_extra_checkout_fields_version_stg=$woocommerce_extra_checkout_fields_version_stg" >> $GITHUB_OUTPUT
echo "wp_mail_catcher_version_stg=$wp_mail_catcher_version_stg" >> $GITHUB_OUTPUT
call-workflow-cd:
needs:
- generate-variables
uses: pagarme/woocommerce/.github/workflows/cd_reusable.yml@develop
with:
tag: stg
wordpress_image_version: ${{ needs.generate-variables.outputs.wordpress_version_stg }}
woocommerce_version: ${{ needs.generate-variables.outputs.woocommerce_version_stg }}
woocommerce_extra_checkout_fields_version: ${{ needs.generate-variables.outputs.woocommerce_extra_checkout_fields_version_stg }}
wp_mail_catcher_version: ${{ needs.generate-variables.outputs.wp_mail_catcher_version_stg }}
secrets:
inherit