Преглед на файлове

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: