Skip to content
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
11 changes: 3 additions & 8 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ jobs:

- name: Generate code snippets
run: yarn cli snippets javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun }}

- name: Build the snippets to check validity
run: yarn cli build snippets javascript ${{ fromJSON(needs.setup.outputs.JAVASCRIPT_DATA).toRun }}

Expand Down Expand Up @@ -689,12 +689,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.ALGOLIA_BOT_TOKEN }}

- name: Push specs and snippets to algolia/doc
run: yarn workspace scripts pushToAlgoliaDoc
env:
GITHUB_TOKEN: ${{ secrets.ALGOLIA_BOT_TOKEN }}

- name: Push guides to algolia/AlgoliaWeb
run: yarn workspace scripts pushToAlgoliaWeb
- name: Push generated files to repositories
run: yarn workspace scripts pushToRepository
env:
GITHUB_TOKEN: ${{ secrets.ALGOLIA_BOT_TOKEN }}
24 changes: 0 additions & 24 deletions .github/workflows/push-to-algolia-doc.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/push-to-algolia-web.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/push-to-repository.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Push generated files to the given repository

on:
workflow_dispatch:
inputs:
name:
description: 'the name of the repository to push files to'
required: true
type: choice
options:
- AlgoliaWeb
- doc

jobs:
push:
name: Push generated files to the given repository
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 pushToRepository ${{ inputs.name }}
env:
GITHUB_TOKEN: ${{ secrets.ALGOLIA_BOT_TOKEN }}
FORCE: true
95 changes: 0 additions & 95 deletions scripts/ci/codegen/pushToAlgoliaDoc.ts

This file was deleted.

126 changes: 0 additions & 126 deletions scripts/ci/codegen/pushToAlgoliaWeb.ts

This file was deleted.

Loading
Loading