Skip to content

Commit 48edf81

Browse files
maxxlessdmitriy-abramov
authored andcommitted
refactor the GitHub actions workflows
Signed-off-by: Maksym Leshchyshyn <[email protected]>
1 parent 51e3c6a commit 48edf81

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.github/workflows/acceptance-tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
name: Acceptance Tests
22

3+
# Controls when the workflow will run
34
on:
45
push:
56
branches: [ master ]
6-
pull_request:
7-
branches: [ master ]
7+
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
810

911
jobs:
1012
acceptance-tests:

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
name: Release
22

33
on:
4-
push:
4+
workflow_run:
5+
workflows: ["Test", "Acceptance Tests"]
56
branches: [ master ]
7+
types:
8+
- completed
69

710
jobs:
811
release:

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ name: Test
22

33
# Controls when the workflow will run
44
on:
5-
# Triggers the workflow on pull request events but only for the master branch
65
pull_request:
76
branches: [ master ]
7+
push:
8+
branches: [ master ]
89

910
# Allows you to run this workflow manually from the Actions tab
1011
workflow_dispatch:

0 commit comments

Comments
 (0)