Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): add a workflow to push to Algolia doc #3833

Merged
merged 3 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ module.exports = {
},
],
},
{
// actions yml linter
files: ['.github/**/*.yml'],

rules: {
'yml/no-empty-mapping-value': 0,
},
},
{
// es linter
files: ['*.ts', '*.js'],
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/push-to-algolia-doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Push specs and snippets to Algolia doc

on: workflow_dispatch

jobs:
release:
name: Scheduled Release
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main

- name: Setup
id: setup
uses: ./.github/actions/setup
with:
type: minimal

- run: yarn workspace scripts pushToAlgoliaDoc
env:
GITHUB_TOKEN: ${{ secrets.ALGOLIA_BOT_TOKEN }}
FORCE: true
4 changes: 0 additions & 4 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ on:
schedule:
- cron: '0 14 * * 5' # At 14:00 on Friday.
workflow_dispatch:
inputs:
fake_input:
description: input needed to satisfy the yaml linter
required: false

jobs:
renovate:
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/scheduled-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ on:
schedule:
- cron: '30 6 * * 2'
workflow_dispatch:
inputs:
fake_input:
description: input needed to satisfy the yaml linter
required: false

jobs:
release:
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/codegen/pushToAlgoliaDoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async function pushToAlgoliaDoc(): Promise<void> {
.map((coAuthor) => coAuthor.trim())
.filter(Boolean);

if (!process.env.DRY_RUN && !lastCommitMessage.startsWith(commitStartRelease)) {
if (!process.env.FORCE && !lastCommitMessage.startsWith(commitStartRelease)) {
return;
}

Expand Down
Loading