Skip to content

Debug env #1

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Comment out workflows
  • Loading branch information
sarah-inkeep committed Apr 14, 2025
commit ce8a19a32fb9eb1f3f87c7000bf8d427344381ce
44 changes: 22 additions & 22 deletions .github/workflows/algolia.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# generate a workflow that triggers in push to main
name: Algolia Re-crawler
# name: Algolia Re-crawler

on:
push:
branches:
- main
workflow_dispatch:
# on:
# push:
# branches:
# - main
# workflow_dispatch:

jobs:
algolia_recrawl:
runs-on: ubuntu-latest
steps:
- name: Sleep for 120s
run: sleep 120
- name: Algolia crawler creation and crawl
uses: algolia/[email protected]
id: algolia_crawler
with: # mandatory parameters
crawler-user-id: ${{ secrets.CRAWLER_USER_ID }}
crawler-api-key: ${{ secrets.CRAWLER_API_KEY }}
algolia-app-id: ${{ secrets.ALGOLIA_APP_ID }}
algolia-api-key: ${{ secrets.ALGOLIA_API_KEY }}
crawler-name: coderabbit
site-url: "https://docs.coderabbit.ai"
# jobs:
# algolia_recrawl:
# runs-on: ubuntu-latest
# steps:
# - name: Sleep for 120s
# run: sleep 120
# - name: Algolia crawler creation and crawl
# uses: algolia/[email protected]
# id: algolia_crawler
# with: # mandatory parameters
# crawler-user-id: ${{ secrets.CRAWLER_USER_ID }}
# crawler-api-key: ${{ secrets.CRAWLER_API_KEY }}
# algolia-app-id: ${{ secrets.ALGOLIA_APP_ID }}
# algolia-api-key: ${{ secrets.ALGOLIA_API_KEY }}
# crawler-name: coderabbit
# site-url: "https://docs.coderabbit.ai"
160 changes: 80 additions & 80 deletions .github/workflows/node.js.yaml
Original file line number Diff line number Diff line change
@@ -1,95 +1,95 @@
name: Node.js CI
# name: Node.js CI

on:
merge_group:
branches:
- main
pull_request:
branches:
- main
push:
branches:
- main
# on:
# merge_group:
# branches:
# - main
# pull_request:
# branches:
# - main
# push:
# branches:
# - main

jobs:
test:
runs-on: ubuntu-latest
env:
INKEEP_API_KEY: ${{ secrets.INKEEP_API_KEY }}
# jobs:
# test:
# runs-on: ubuntu-latest
# env:
# INKEEP_API_KEY: ${{ secrets.INKEEP_API_KEY }}

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: latest
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile --strict-peer-dependencies
- run: pnpm run build
env:
INKEEP_API_KEY: ${{ secrets.INKEEP_API_KEY }}
- run: pnpm run lint
# steps:
# - uses: actions/checkout@v4
# - uses: pnpm/action-setup@v4
# with:
# version: latest
# - uses: actions/setup-node@v4
# with:
# node-version: 22
# cache: pnpm
# - run: pnpm install --frozen-lockfile --strict-peer-dependencies
# - run: pnpm run build
# env:
# INKEEP_API_KEY: ${{ secrets.INKEEP_API_KEY }}
# - run: pnpm run lint

fix:
runs-on: ubuntu-latest
# fix:
# runs-on: ubuntu-latest

permissions:
contents: write
# permissions:
# contents: write

needs:
- test
# needs:
# - test

if: failure() && github.event_name != 'merge_group' && github.actor != 'github-actions[bot]' && github.actor != 'nektos/act'
# if: failure() && github.event_name != 'merge_group' && github.actor != 'github-actions[bot]' && github.actor != 'nektos/act'

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- uses: pnpm/action-setup@v4
with:
version: latest
- uses: actions/setup-node@v4
with:
cache: pnpm
node-version: 22
# steps:
# - uses: actions/checkout@v4
# with:
# ref: ${{ github.ref }}
# - uses: pnpm/action-setup@v4
# with:
# version: latest
# - uses: actions/setup-node@v4
# with:
# cache: pnpm
# node-version: 22

- run: |
pnpm install --fix-lockfile --no-frozen-lockfile
git add .
- id: commit-lockfile
uses: qoomon/actions--create-commit@v1
with:
message: |
📌 pnpm install --fix-lockfile
# - run: |
# pnpm install --fix-lockfile --no-frozen-lockfile
# git add .
# - id: commit-lockfile
# uses: qoomon/actions--create-commit@v1
# with:
# message: |
# 📌 pnpm install --fix-lockfile

[dependabot skip]
skip-empty: true
# [dependabot skip]
# skip-empty: true

- run: |
pnpm run format
git add .
- id: commit-format
uses: qoomon/actions--create-commit@v1
with:
message: |
🎨 pnpm run format
# - run: |
# pnpm run format
# git add .
# - id: commit-format
# uses: qoomon/actions--create-commit@v1
# with:
# message: |
# 🎨 pnpm run format

[dependabot skip]
skip-empty: true
# [dependabot skip]
# skip-empty: true

- run: |
pnpm run lint:fix
git add .
- id: commit-lint
uses: qoomon/actions--create-commit@v1
with:
message: |
🚨 pnpm run lint:fix
# - run: |
# pnpm run lint:fix
# git add .
# - id: commit-lint
# uses: qoomon/actions--create-commit@v1
# with:
# message: |
# 🚨 pnpm run lint:fix

[dependabot skip]
skip-empty: true
# [dependabot skip]
# skip-empty: true

- if: steps.commit-lockfile.outputs.commit || steps.commit-format.outputs.commit || steps.commit-lint.outputs.commit
run: git push
# - if: steps.commit-lockfile.outputs.commit || steps.commit-format.outputs.commit || steps.commit-lint.outputs.commit
# run: git push