Skip to content

Commit

Permalink
ci: update condition for release
Browse files Browse the repository at this point in the history
  • Loading branch information
wenytang-ms committed Sep 13, 2023
1 parent bb665eb commit d550109
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d550109

Please sign in to comment.