Skip to content

Commit 9894ecf

Browse files
committed
CI: synchronize run conditions, allow manual trigger
1 parent ad23033 commit 9894ecf

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/docker.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
name: Docker
22
on:
33
push:
4+
branches:
5+
- master
46
tags:
57
- '*'
8+
pull_request:
9+
branches:
10+
- master
11+
schedule:
12+
- cron: '0 0 * * 6' # every Saturday
13+
workflow_dispatch:
614

715
jobs:
816
push:
@@ -18,3 +26,4 @@ jobs:
1826
repository: codingteam/codingteam.org.ru
1927
tag_with_ref: true
2028
tags: latest
29+
push: ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags/') && 'true' || 'false' }}

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77
branches:
88
- master
99
schedule:
10-
- cron: '0 0 * * 0'
10+
- cron: '0 0 * * 6' # every Saturday
11+
workflow_dispatch:
1112

1213
jobs:
1314
test:

0 commit comments

Comments
 (0)