We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7728459 commit 14aaefdCopy full SHA for 14aaefd
.github/workflows/build-push.yml
@@ -48,7 +48,7 @@ jobs:
48
steps:
49
- name: Output variables
50
run: |
51
- echo "Environment: ${{ inputs.environment }}"
+ echo "Environment: ${{ inputs.environment || github.event.client_payload.environment }}"
52
echo "Branch: ${{ github.ref }}"
53
- name: Checks to see that main branch is selected if deploying to prod
54
if: ${{ inputs.environment == 'prod' && github.ref != 'refs/heads/main' }}
@@ -65,7 +65,7 @@ jobs:
65
docs_source_path: "public"
66
docs_build_path: "./"
67
doc_type: "hugo"
68
- environment: ${{inputs.environment}}
+ environment: ${{ inputs.environment || github.event.client_payload.environment }}
69
force_hugo_theme_version: ${{inputs.hugo_theme_override}}
70
auto_deploy_branch: "main"
71
auto_deploy_env: "prod"
0 commit comments