Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb2bf4fa

Browse files
Zo-Bro-23douxiaoboanuraghazrarickstaa
authored
fix: change prod deployment branch to vercel branch to fix maxDuration bug (anuraghazra#2424)
* Create deploy-prep.yml* Create deploy-prep.py* Update vercel.json* Update deploy-prep.yml* Update vercel.json* Added coauthorCo-authored-by: Dou Xiaobo <93511091+douxiaobo@users.noreply.github.com>* Update deploy-prep.yml* refactor: format code* Added if condition to disable deployments on forksCo-authored-by: Rick Staa <rick.staa@outlook.com>* Update deploy-prep.ymlCo-authored-by: Dou Xiaobo <93511091+douxiaobo@users.noreply.github.com>Co-authored-by: Anurag Hazra <hazru.anurag@gmail.com>Co-authored-by: rickstaa <rick.staa@outlook.com>
1 parent4b17300 commitb2bf4fa

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

‎.github/workflows/deploy-prep.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
importos
2+
3+
file=open('./vercel.json','r')
4+
str=file.read()
5+
file=open('./vercel.json','w')
6+
7+
str=str.replace('"maxDuration": 10','"maxDuration": 30')
8+
9+
file.write(str)
10+
file.close()

‎.github/workflows/deploy-prep.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name:Deployment Prep
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
-master
7+
8+
jobs:
9+
config:
10+
if:github.repository == 'anuraghazra/github-readme-stats'
11+
runs-on:ubuntu-latest
12+
steps:
13+
-uses:actions/checkout@v3
14+
-name:Deployment Prep
15+
run:python ./.github/workflows/deploy-prep.py
16+
-uses:stefanzweifel/git-auto-commit-action@v4
17+
with:
18+
branch:vercel
19+
create_branch:true
20+
push_options:"--force"

‎vercel.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"functions": {
33
"api/*.js": {
44
"memory":128,
5-
"maxDuration":30
5+
"maxDuration":10
66
}
77
},
88
"redirects": [

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp