diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index f8388db2cf..b1eaa99f39 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -42,7 +42,7 @@ jobs: exit 1 - name: Validate inputs for release - if: ${{ github.event_name == 'workflow_dispatch' && startsWith(github.ref, 'refs/heads/release/') && (github.event.inputs.preid != 'stable' || github.event.inputs.preid != 'rc')}} + if: ${{ github.event_name == 'workflow_dispatch' && startsWith(github.ref, 'refs/heads/release/') && (github.event.inputs.preid != 'stable' && github.event.inputs.preid != 'rc')}} run: | echo It's only allowed to release stable on release branch exit 1