ci: кнопка ручного запуска (workflow_dispatch)
This commit is contained in:
1 parent
ce7f81fe17
commit
2563932b95
1 file changed
+2
-1
@@ -2,6 +2,7 @@ name: CI/CD
|
||||
|
||||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
@@ -24,7 +25,7 @@ jobs:
|
||||
name: Деплой neon-bar86.ru
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
|
||||
Reference in new issue
Block a user