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:
|
on:
|
||||||
push:
|
push:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
@@ -24,7 +25,7 @@ jobs:
|
|||||||
name: Деплой neon-bar86.ru
|
name: Деплой neon-bar86.ru
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: test
|
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:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user