Skip to content

Commit 1a3d8b3

Browse files
authored
Merge branch 'main' into chore/auto-close-contribution
2 parents a589dfa + 8b31d9e commit 1a3d8b3

File tree

8 files changed

+36
-22
lines changed

8 files changed

+36
-22
lines changed

.eslintrc.cjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@ module.exports = {
7171
},
7272
],
7373
},
74+
{
75+
// actions yml linter
76+
files: ['.github/**/*.yml'],
77+
78+
rules: {
79+
'yml/no-empty-mapping-value': 0,
80+
},
81+
},
7482
{
7583
// es linter
7684
files: ['*.ts', '*.js'],
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Push specs and snippets to Algolia doc
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
release:
7+
name: Scheduled Release
8+
runs-on: ubuntu-22.04
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
13+
ref: main
14+
15+
- name: Setup
16+
id: setup
17+
uses: ./.github/actions/setup
18+
with:
19+
type: minimal
20+
21+
- run: yarn workspace scripts pushToAlgoliaDoc
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.ALGOLIA_BOT_TOKEN }}
24+
FORCE: true

.github/workflows/renovate.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ on:
44
schedule:
55
- cron: '0 14 * * 5' # At 14:00 on Friday.
66
workflow_dispatch:
7-
inputs:
8-
fake_input:
9-
description: input needed to satisfy the yaml linter
10-
required: false
117

128
jobs:
139
renovate:

.github/workflows/scheduled-release.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ on:
44
schedule:
55
- cron: '30 6 * * 2'
66
workflow_dispatch:
7-
inputs:
8-
fake_input:
9-
description: input needed to satisfy the yaml linter
10-
required: false
117

128
jobs:
139
release:

scripts/ci/codegen/pushToAlgoliaDoc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async function pushToAlgoliaDoc(): Promise<void> {
2828
.map((coAuthor) => coAuthor.trim())
2929
.filter(Boolean);
3030

31-
if (!process.env.DRY_RUN && !lastCommitMessage.startsWith(commitStartRelease)) {
31+
if (!process.env.FORCE && !lastCommitMessage.startsWith(commitStartRelease)) {
3232
return;
3333
}
3434

specs/bundled/crawler.doc.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,7 @@ info:
8888
version: 1.0.0
8989
servers:
9090
- url: https://crawler.algolia.com/api
91-
description: The main URL of the Crawler API.
92-
- url: https://crawler-dev.algolia.com/api
93-
description: >-
94-
The URL of the development version of the Crawler API (Algolia employees
95-
only).
91+
description: The URL of the Crawler API.
9692
security:
9793
- BasicAuth: []
9894
tags:

specs/bundled/crawler.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,7 @@ info:
8888
version: 1.0.0
8989
servers:
9090
- url: https://crawler.algolia.com/api
91-
description: The main URL of the Crawler API.
92-
- url: https://crawler-dev.algolia.com/api
93-
description: >-
94-
The URL of the development version of the Crawler API (Algolia employees
95-
only).
91+
description: The URL of the Crawler API.
9692
security:
9793
- BasicAuth: []
9894
tags:

specs/crawler/spec.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ components:
5959
scheme: basic
6060
servers:
6161
- url: https://crawler.algolia.com/api
62-
description: The main URL of the Crawler API.
63-
- url: https://crawler-dev.algolia.com/api
64-
description: The URL of the development version of the Crawler API (Algolia employees only).
62+
description: The URL of the Crawler API.
6563
security:
6664
- BasicAuth: []
6765
tags:

0 commit comments

Comments
 (0)