Skip to content

Commit 14ac418

Browse files
authored
prevent auto publishing docs on push to release branch (nginx#6926)
1 parent 1937bf3 commit 14ac418

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/docs-build-push.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,17 @@ on:
1717
required: false
1818
default: ''
1919
type: string
20+
workflow_call:
21+
inputs:
22+
environment:
23+
description: "Environment to deploy to"
24+
required: true
25+
type: string
2026
pull_request:
2127
branches:
2228
- "*"
2329
paths:
2430
- "site/**"
25-
push:
26-
branches:
27-
- "release-3.7"
2831

2932
permissions:
3033
contents: read
@@ -43,8 +46,6 @@ jobs:
4346
doc_type: "hugo"
4447
environment: ${{ inputs.environment }}
4548
force_hugo_theme_version: ${{inputs.hugo_theme_override}}
46-
auto_deploy_branch: "release-3.7"
47-
auto_deploy_env: "prod"
4849
secrets:
4950
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS_DOCS }}
5051
AZURE_KEY_VAULT: ${{ secrets.AZURE_KEY_VAULT_DOCS }}

0 commit comments

Comments
 (0)