Skip to content

Commit 0ca1d52

Browse files
committed
try to fix CI
1 parent 5e44e07 commit 0ca1d52

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- master
7+
- release
78
pull_request:
89
workflow_dispatch:
910

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
name: "CodeQL"
1+
name: CodeQL
22

33
on:
44
push:
5-
branches: [master, ]
5+
branches:
6+
- master
7+
- release
68
pull_request:
79
# The branches below must be a subset of the branches above
810
branches: [master]

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: release
22

33
on:
4-
push:
5-
tags:
6-
- v*
4+
workflow_run:
5+
workflows: ["build"]
6+
branches: ["release"]
7+
types: ["completed"]
78

89
jobs:
910
release:
10-
needs: build
1111
runs-on: ubuntu-latest
1212

1313
steps:

scdlbot/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def main():
6262
if source_ips:
6363
source_ips = source_ips.split(",")
6464
cookies_file = os.getenv("COOKIES_FILE", "")
65-
workers = os.getenv("WORKERS", 4)
65+
workers = int(os.getenv("WORKERS", 4))
6666

6767
scdlbot = ScdlBot(
6868
tg_bot_token,

0 commit comments

Comments
 (0)