Skip to content

Commit 92fea89

Browse files
committed
chore: allow publishing production docs from master
1 parent 739b4d4 commit 92fea89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ jobs:
5555
docs_release:
5656
name: Publish documentation from "${{ github.ref_name }}" branch to ${{ inputs.docs_env }}
5757
runs-on: ubuntu-latest
58-
# skip during dry runs, publish to production only from branches with names starting with "release", publish to staging from anywhere
59-
if: ${{ !inputs.dry_run && ((startsWith(github.ref_name, 'release') && inputs.docs_env == 'production') || inputs.docs_env == 'staging') }}
58+
# skip during dry runs, publish to production only from master or branches with names starting with "release", publish to staging from anywhere
59+
if: ${{ !inputs.dry_run && (((github.ref_name == 'master' || startsWith(github.ref_name, 'release')) && inputs.docs_env == 'production') || inputs.docs_env == 'staging') }}
6060
outputs:
6161
target-version: $${{ steps.target-version.outputs }}
6262
steps:

0 commit comments

Comments
 (0)