File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,21 +112,6 @@ jobs:
112112 path : mdn/curriculum
113113 persist-credentials : false
114114
115- # Our usecase is a bit complicated. When the cron schedule runs this workflow,
116- # we rely on the env vars defined at the top of the file. But if it's a manual
117- # trigger we rely on the inputs and only the inputs. That way, the user can
118- # opt to type in 'false'.
119- # It's not possible to express this with GitHub Workflow syntax, so we
120- # have a dedicate set that conveniently sets these as env vars which we
121- # can refer to later in `if: ....` lines or in bash with the `run: ...` blocks.
122- - name : Merge dispatch inputs with default env vars
123- env :
124- DEPLOYER_BUCKET_PREFIX : ${{ github.event.inputs.deployment_prefix || env.DEFAULT_DEPLOYMENT_PREFIX }}
125- DEPLOYER_LOG_EACH_SUCCESSFUL_UPLOAD : ${{ github.event.inputs.log_each_successful_upload || env.DEFAULT_LOG_EACH_SUCCESSFUL_UPLOAD }}
126- run : |
127- echo "DEPLOYER_BUCKET_PREFIX=$DEPLOYER_BUCKET_PREFIX" >> $GITHUB_ENV
128- echo "DEPLOYER_LOG_EACH_SUCCESSFUL_UPLOAD=$DEPLOYER_LOG_EACH_SUCCESSFUL_UPLOAD" >> $GITHUB_ENV
129-
130115 - name : Checkout (translated-content)
131116 uses : actions/checkout@v5
132117 if : ${{ ! vars.SKIP_BUILD || ! vars.SKIP_FUNCTION }}
Original file line number Diff line number Diff line change 7777 if : ${{ github.repository == 'mdn/dex' && github.ref_name == 'next' }}
7878
7979 steps :
80- # Our usecase is a bit complicated. When the cron schedule runs this workflow,
81- # we rely on the env vars defined at the top of the file. But if it's a manual
82- # trigger we rely on the inputs and only the inputs. That way, the user can
83- # opt to type in 'false'.
84- # It's not possible to express this with GitHub Workflow syntax, so we
85- # have a dedicate set that conveniently sets these as env vars which we
86- # can refer to later in `if: ....` lines or in bash with the `run: ...` blocks.
87- - name : Merge dispatch inputs with default env vars
88- env :
89- DEPLOYER_BUCKET_PREFIX : ${{ github.event.inputs.deployment_prefix || env.DEFAULT_DEPLOYMENT_PREFIX }}
90- DEPLOYER_LOG_EACH_SUCCESSFUL_UPLOAD : ${{ github.event.inputs.log_each_successful_upload || env.DEFAULT_LOG_EACH_SUCCESSFUL_UPLOAD }}
91- run : |
92- echo "DEPLOYER_BUCKET_PREFIX=$DEPLOYER_BUCKET_PREFIX" >> $GITHUB_ENV
93- echo "DEPLOYER_LOG_EACH_SUCCESSFUL_UPLOAD=$DEPLOYER_LOG_EACH_SUCCESSFUL_UPLOAD" >> $GITHUB_ENV
94-
9580 - name : Checkout
9681 uses : actions/checkout@v5
9782 with :
You can’t perform that action at this time.
0 commit comments