Skip to content

Commit 49a5fca

Browse files
committed
main2.md
1 parent 4b8c4ac commit 49a5fca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
steps:
2626
- name: validate branch
27-
if: ${{ github.ref != 'refs/heads/dev' || github.ref != 'refs/heads/main' }}
27+
if: ${{ (github.ref != 'refs/heads/dev' && github.ref != 'refs/heads/main') || (github.ref == 'refs/heads/dev' && (!startsWith(github.event.inputs.version, 'pre') || github.event.inputs.preid != 'alpha')) || (github.ref == 'refs/heads/main' && startsWith(github.event.inputs.version, 'pre') && github.event.inputs.preid != 'rc') }}
2828
run: |
2929
echo ${{ github.ref }}
3030
echo ${{ github.event.inputs.version }}

0 commit comments

Comments
 (0)