forked from anuraghazra/github-readme-stats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: change prod deployment branch to vercel branch to fix maxDuratio…
…n bug (anuraghazra#2424) * Create deploy-prep.yml * Create deploy-prep.py * Update vercel.json * Update deploy-prep.yml * Update vercel.json * Added coauthor Co-authored-by: Dou Xiaobo <[email protected]> * Update deploy-prep.yml * refactor: format code * Added if condition to disable deployments on forks Co-authored-by: Rick Staa <[email protected]> * Update deploy-prep.yml Co-authored-by: Dou Xiaobo <[email protected]> Co-authored-by: Anurag Hazra <[email protected]> Co-authored-by: rickstaa <[email protected]>
- Loading branch information
1 parent
4b17300
commit b2bf4fa
Showing
3 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import os | ||
|
||
file = open('./vercel.json', 'r') | ||
str = file.read() | ||
file = open('./vercel.json', 'w') | ||
|
||
str = str.replace('"maxDuration": 10', '"maxDuration": 30') | ||
|
||
file.write(str) | ||
file.close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Deployment Prep | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
config: | ||
if: github.repository == 'anuraghazra/github-readme-stats' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Deployment Prep | ||
run: python ./.github/workflows/deploy-prep.py | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
branch: vercel | ||
create_branch: true | ||
push_options: "--force" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"functions": { | ||
"api/*.js": { | ||
"memory": 128, | ||
"maxDuration": 30 | ||
"maxDuration": 10 | ||
} | ||
}, | ||
"redirects": [ | ||
|