Skip to content

Commit 8b31d9e

Browse files
authored
chore(ci): add a workflow to push to Algolia doc (#3833)
1 parent 2b4d310 commit 8b31d9e

File tree

5 files changed

+33
-9
lines changed

5 files changed

+33
-9
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

0 commit comments

Comments
 (0)