Skip to content

Commit 11d29ef

Browse files
committed
ci: support testing release workflow on push
1 parent b4aa5b8 commit 11d29ef

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: release
33
on:
44
push:
55
tags: [scallop-*]
6+
branches: ['**']
7+
paths:
8+
- ".github/workflows/release.yml"
69
workflow_dispatch:
710

811
jobs:
@@ -24,7 +27,7 @@ jobs:
2427
ref=${{ github.ref_name }}
2528
2629
# verify tag name matches configure script
27-
if [[ ${ref} != main && ${ref} != ${release} ]]; then
30+
if [[ ${{ github.ref_type }} == tag && ${ref} != ${release} ]]; then
2831
echo "tag name ${ref} doesn't match package: ${release}"
2932
exit 1
3033
fi

0 commit comments

Comments
 (0)