From 0a27632737088af8a9bcaa73880b6bdf30911212 Mon Sep 17 00:00:00 2001 From: Zohan Subhash Date: Tue, 17 Jan 2023 12:31:52 +0530 Subject: [PATCH 01/10] Create deploy-prep.yml --- .github/workflows/deploy-prep.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/deploy-prep.yml diff --git a/.github/workflows/deploy-prep.yml b/.github/workflows/deploy-prep.yml new file mode 100644 index 0000000000000..041e244b186c8 --- /dev/null +++ b/.github/workflows/deploy-prep.yml @@ -0,0 +1,19 @@ +name: Deployment Prep +on: + workflow_dispatch: + push: + branches: + - main + +jobs: + config: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set theme + run: python ./.github/workflows/deploy-prep.py + - uses: stefanzweifel/git-auto-commit-action@v4 + with: + branch: vercel + create_branch: true + push_options: '--force' From 2586de4ee06d778acb97761d4dd3ee88d07f2a63 Mon Sep 17 00:00:00 2001 From: Zohan Subhash Date: Tue, 17 Jan 2023 12:32:15 +0530 Subject: [PATCH 02/10] Create deploy-prep.py --- .github/workflows/deploy-prep.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/workflows/deploy-prep.py diff --git a/.github/workflows/deploy-prep.py b/.github/workflows/deploy-prep.py new file mode 100644 index 0000000000000..794c19a296122 --- /dev/null +++ b/.github/workflows/deploy-prep.py @@ -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() From 53884b77152662b2e61c4809402e6a64be592e08 Mon Sep 17 00:00:00 2001 From: Zohan Subhash Date: Tue, 17 Jan 2023 12:32:28 +0530 Subject: [PATCH 03/10] Update vercel.json --- vercel.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index aee61ce054fd0..ddf82eb15666f 100644 --- a/vercel.json +++ b/vercel.json @@ -2,7 +2,7 @@ "functions": { "api/*.js": { "memory": 128, - "maxDuration": 30 + "maxDuration": 10 } }, "redirects": [ From 064100a18f17dd777353e31c85c26c4dd5f29fbc Mon Sep 17 00:00:00 2001 From: Zohan Subhash Date: Tue, 17 Jan 2023 12:47:04 +0530 Subject: [PATCH 04/10] Update deploy-prep.yml --- .github/workflows/deploy-prep.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-prep.yml b/.github/workflows/deploy-prep.yml index 041e244b186c8..90b4d6c9782db 100644 --- a/.github/workflows/deploy-prep.yml +++ b/.github/workflows/deploy-prep.yml @@ -3,7 +3,7 @@ on: workflow_dispatch: push: branches: - - main + - master jobs: config: From 951aa3bb25c72575082b2340c73a6c0d1b00bfe2 Mon Sep 17 00:00:00 2001 From: Zohan Subhash Date: Tue, 17 Jan 2023 12:50:29 +0530 Subject: [PATCH 05/10] Update vercel.json --- vercel.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index ddf82eb15666f..aee61ce054fd0 100644 --- a/vercel.json +++ b/vercel.json @@ -2,7 +2,7 @@ "functions": { "api/*.js": { "memory": 128, - "maxDuration": 10 + "maxDuration": 30 } }, "redirects": [ From 61784ba7e001a9dd5752d06961a8b35b54de3c03 Mon Sep 17 00:00:00 2001 From: Zohan Subhash Date: Tue, 17 Jan 2023 12:50:46 +0530 Subject: [PATCH 06/10] Added coauthor Co-authored-by: Dou Xiaobo <93511091+douxiaobo@users.noreply.github.com> --- vercel.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index aee61ce054fd0..ddf82eb15666f 100644 --- a/vercel.json +++ b/vercel.json @@ -2,7 +2,7 @@ "functions": { "api/*.js": { "memory": 128, - "maxDuration": 30 + "maxDuration": 10 } }, "redirects": [ From 8d68ba3235b65ff8d290a2b29c69ba8d8ced3143 Mon Sep 17 00:00:00 2001 From: Anurag Hazra Date: Sat, 21 Jan 2023 16:40:16 +0530 Subject: [PATCH 07/10] Update deploy-prep.yml --- .github/workflows/deploy-prep.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-prep.yml b/.github/workflows/deploy-prep.yml index 90b4d6c9782db..963713496a668 100644 --- a/.github/workflows/deploy-prep.yml +++ b/.github/workflows/deploy-prep.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Set theme + - name: Deployment Prep run: python ./.github/workflows/deploy-prep.py - uses: stefanzweifel/git-auto-commit-action@v4 with: From 9f00a126c6e754ef3e6db74a174b67c4d1242175 Mon Sep 17 00:00:00 2001 From: rickstaa Date: Sat, 21 Jan 2023 12:40:04 +0100 Subject: [PATCH 08/10] refactor: format code --- .github/workflows/deploy-prep.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-prep.yml b/.github/workflows/deploy-prep.yml index 963713496a668..b973bad456332 100644 --- a/.github/workflows/deploy-prep.yml +++ b/.github/workflows/deploy-prep.yml @@ -16,4 +16,4 @@ jobs: with: branch: vercel create_branch: true - push_options: '--force' + push_options: "--force" From c766d0b2b3ea5c1d70027976b06ef7e8d36f20a6 Mon Sep 17 00:00:00 2001 From: Zohan Subhash Date: Sun, 22 Jan 2023 07:47:00 +0530 Subject: [PATCH 09/10] Added if condition to disable deployments on forks Co-authored-by: Rick Staa --- .github/workflows/deploy-prep.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy-prep.yml b/.github/workflows/deploy-prep.yml index b973bad456332..590b681ab82f3 100644 --- a/.github/workflows/deploy-prep.yml +++ b/.github/workflows/deploy-prep.yml @@ -7,6 +7,7 @@ on: jobs: config: + if: github.repository == ‘anuraghazra/github-readme-stats’ runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 From d04b114015a6bbca13643ea682d03535292f2a4c Mon Sep 17 00:00:00 2001 From: Zohan Subhash Date: Mon, 23 Jan 2023 09:03:28 +0530 Subject: [PATCH 10/10] Update deploy-prep.yml --- .github/workflows/deploy-prep.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-prep.yml b/.github/workflows/deploy-prep.yml index 590b681ab82f3..0626e13d575a7 100644 --- a/.github/workflows/deploy-prep.yml +++ b/.github/workflows/deploy-prep.yml @@ -7,7 +7,7 @@ on: jobs: config: - if: github.repository == ‘anuraghazra/github-readme-stats’ + if: github.repository == 'anuraghazra/github-readme-stats' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3