소스 검색

ci: only run release job for workflow_dispatch events

TheWildJames 6 달 전
부모
커밋
8c9ffb986a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      .github/workflows/main.yml

+ 1 - 1
.github/workflows/main.yml

@@ -223,7 +223,7 @@ jobs:
 
   release:
     runs-on: ubuntu-latest
-    if: ${{ always() && inputs.release_type != 'Actions' }}
+    if: ${{ github.event_name == 'workflow_dispatch' && inputs.release_type != 'Actions' }}
     permissions:
       contents: write
     needs: