Skip to content

Commit 9e950b3

Browse files
committed
ci(workflows): remove obsolete inputs
1 parent 696c35f commit 9e950b3

4 files changed

Lines changed: 7 additions & 57 deletions

File tree

.github/workflows/prod-build.yml

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ name: Prod Build
99
# https://docs.google.com/spreadsheets/d/1VnnEl-iTtKYmlyN02FiEXygxZCgE4o_ZO8wSleebne4/edit?usp=sharing
1010
#
1111

12-
env:
13-
DEFAULT_DEPLOYMENT_PREFIX: "main"
14-
DEFAULT_NOTES: ""
15-
DEFAULT_LOG_EACH_SUCCESSFUL_UPLOAD: "false"
16-
1712
on:
1813
schedule:
1914
- cron: "0 0 * * *"
@@ -23,23 +18,7 @@ on:
2318
notes:
2419
description: "Notes"
2520
required: false
26-
default: ${DEFAULT_NOTES}
27-
28-
# This is very useful when combined with the "Use workflow from"
29-
# feature that is built into the "Run workflow" button on
30-
# https://github.com/mdn/dex/actions?query=workflow%3A%22Production+Build%22
31-
# If you override the deployment prefix to something like the name
32-
# of the branch, you can deploy that entire branch to its own prefix
33-
# in S3 which means that it can be fully hosted as its own site.
34-
deployment_prefix:
35-
description: "Deployment prefix"
36-
required: false
37-
default: ${DEFAULT_DEPLOYMENT_PREFIX}
38-
39-
log_each_successful_upload:
40-
description: "Deployer logs each success"
41-
required: false
42-
default: ${DEFAULT_LOG_EACH_SUCCESSFUL_UPLOAD}
21+
default: ""
4322

4423
invalidate:
4524
description: "Invalidate CDN (use only in exceptional circumstances)"
@@ -198,13 +177,9 @@ jobs:
198177
199178
- name: Print information about build
200179
env:
201-
NOTES: ${{ github.event.inputs.notes || env.DEFAULT_NOTES }}
202-
LOG_EACH_SUCCESSFUL_UPLOAD: ${{ github.event.inputs.log_each_successful_upload || env.DEFAULT_LOG_EACH_SUCCESSFUL_UPLOAD }}
203-
DEPLOYMENT_PREFIX: ${{ github.event.inputs.deployment_prefix || env.DEFAULT_DEPLOYMENT_PREFIX }}
180+
NOTES: ${{ github.event.inputs.notes }}
204181
run: |
205182
echo "notes: $NOTES"
206-
echo "log_each_successful_upload: $LOG_EACH_SUCCESSFUL_UPLOAD"
207-
echo "deployment_prefix: $DEPLOYMENT_PREFIX"
208183
209184
- name: Print information about CPU
210185
run: cat /proc/cpuinfo

.github/workflows/review-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
notes:
1111
description: "Notes"
1212
required: false
13-
default: ${DEFAULT_NOTES}
13+
default: ""
1414

1515
workflow_call:
1616
secrets:

.github/workflows/stage-build.yml

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ name: Stage Build
99
# https://docs.google.com/spreadsheets/d/1VnnEl-iTtKYmlyN02FiEXygxZCgE4o_ZO8wSleebne4/edit?usp=sharing
1010
#
1111

12-
env:
13-
DEFAULT_DEPLOYMENT_PREFIX: "main"
14-
DEFAULT_NOTES: ""
15-
DEFAULT_LOG_EACH_SUCCESSFUL_UPLOAD: "false"
16-
1712
on:
1813
schedule:
1914
- cron: "0 0 * * *"
@@ -23,23 +18,7 @@ on:
2318
notes:
2419
description: "Notes"
2520
required: false
26-
default: ${DEFAULT_NOTES}
27-
28-
# This is very useful when combined with the "Use workflow from"
29-
# feature that is built into the "Run workflow" button on
30-
# https://github.com/mdn/dex/actions?query=workflow%3A%22Production+Build%22
31-
# If you override the deployment prefix to something like the name
32-
# of the branch, you can deploy that entire branch to its own prefix
33-
# in S3 which means that it can be fully hosted as its own site.
34-
deployment_prefix:
35-
description: "Deployment prefix"
36-
required: false
37-
default: ${DEFAULT_DEPLOYMENT_PREFIX}
38-
39-
log_each_successful_upload:
40-
description: "Deployer logs each success"
41-
required: false
42-
default: ${DEFAULT_LOG_EACH_SUCCESSFUL_UPLOAD}
21+
default: ""
4322

4423
invalidate:
4524
description: "Invalidate CDN (use only in exceptional circumstances)"
@@ -221,13 +200,9 @@ jobs:
221200
222201
- name: Print information about build
223202
env:
224-
NOTES: ${{ github.event.inputs.notes || env.DEFAULT_NOTES }}
225-
LOG_EACH_SUCCESSFUL_UPLOAD: ${{ github.event.inputs.log_each_successful_upload || env.DEFAULT_LOG_EACH_SUCCESSFUL_UPLOAD }}
226-
DEPLOYMENT_PREFIX: ${{ github.event.inputs.deployment_prefix || env.DEFAULT_DEPLOYMENT_PREFIX }}
203+
NOTES: ${{ github.event.inputs.notes }}
227204
run: |
228205
echo "notes: $NOTES"
229-
echo "log_each_successful_upload: $LOG_EACH_SUCCESSFUL_UPLOAD"
230-
echo "deployment_prefix: $DEPLOYMENT_PREFIX"
231206
232207
- name: Print information about CPU
233208
run: cat /proc/cpuinfo

.github/workflows/test-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ on:
3232
notes:
3333
description: "Notes"
3434
required: false
35-
default: ${DEFAULT_NOTES}
35+
default: ""
3636

3737
invalidate:
3838
description: "Invalidate CDN (use only in exceptional circumstances)"
@@ -76,7 +76,7 @@ jobs:
7676
RARI_REF: ${{ github.event.inputs.rari-ref }}
7777
CONTENT_REF: ${{ github.event.inputs.content-ref }}
7878
TRANSLATED_CONTENT_REF: ${{ github.event.inputs.translated-content-ref }}
79-
NOTES: ${{ github.event.inputs.notes || env.DEFAULT_NOTES }}
79+
NOTES: ${{ github.event.inputs.notes }}
8080
INVALIDATE: ${{ github.event.inputs.invalidate }}
8181
run: |
8282
echo "rari-ref: $RARI_REF"

0 commit comments

Comments
 (0)