Skip to content

Commit

Permalink
switching to our org
Browse files Browse the repository at this point in the history
  • Loading branch information
mike dupont committed Jan 9, 2025
1 parent 6ebef92 commit 999990f
Show file tree
Hide file tree
Showing 7 changed files with 103 additions and 103 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: meta-introspector/checkout@v4

- uses: pnpm/action-setup@v3
- uses: meta-introspector/action-setup@v3
with:
version: 9.4.0

- uses: actions/setup-node@v4
- uses: meta-introspector/setup-node@v4
with:
node-version: "23"
cache: "pnpm"
Expand All @@ -39,7 +39,7 @@ jobs:
- name: Build packages
run: pnpm run build

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
# - name: Upload coverage reports to Codecov
# uses: meta-introspector/codecov-action@v5
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ jobs:
build-mode: none
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: meta-introspector/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: meta-introspector/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
Expand All @@ -50,6 +50,6 @@ jobs:
exit 1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: meta-introspector/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
166 changes: 83 additions & 83 deletions .github/workflows/generate-readme-translations.yml
Original file line number Diff line number Diff line change
@@ -1,89 +1,89 @@
name: Generate Readme Translations
on:
push:
branches:
- "1222--README-ci-auto-translation"
# name: Generate Readme Translations
# on:
# push:
# branches:
# - "1222--README-ci-auto-translation"

jobs:
translation:
runs-on: ubuntu-latest
strategy:
matrix:
language:
[
{ code: "CN", name: "Chinese" },
{ code: "DE", name: "German" },
{ code: "ES", name: "Spanish" },
{ code: "FR", name: "French" },
{ code: "HE", name: "Hebrew" },
{ code: "IT", name: "Italian" },
{ code: "JA", name: "Japanese" },
{ code: "KOR", name: "Korean" },
{ code: "PTBR", name: "Portuguese (Brazil)" },
{ code: "RU", name: "Russian" },
{ code: "TH", name: "Thai" },
{ code: "TR", name: "Turkish" },
{ code: "VI", name: "Vietnamese" },
]
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: main
token: ${{ secrets.GH_TOKEN }}
# jobs:
# translation:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# language:
# [
# { code: "CN", name: "Chinese" },
# { code: "DE", name: "German" },
# { code: "ES", name: "Spanish" },
# { code: "FR", name: "French" },
# { code: "HE", name: "Hebrew" },
# { code: "IT", name: "Italian" },
# { code: "JA", name: "Japanese" },
# { code: "KOR", name: "Korean" },
# { code: "PTBR", name: "Portuguese (Brazil)" },
# { code: "RU", name: "Russian" },
# { code: "TH", name: "Thai" },
# { code: "TR", name: "Turkish" },
# { code: "VI", name: "Vietnamese" },
# ]
# permissions:
# contents: write
# steps:
# - uses: meta-introspector/checkout@v4
# with:
# ref: main
# token: ${{ secrets.GH_TOKEN }}

- name: Translate to ${{ matrix.language.name }}
uses: 0xjord4n/[email protected]
id: aixion
with:
config: >
{
"provider": "openai",
"provider_options": {
"api_key": "${{ secrets.OPENAI_API_KEY }}"
},
"messages": [
{
"role": "system",
"content": "You will be provided with a markdown file in English, and your task is to translate it into ${{ matrix.language.name }}."
},
{
"role": "user",
"content_path": "README.md"
}
],
"save_path": "README_${{ matrix.language.code }}.md",
"model": "gpt-4o"
}
# - name: Translate to ${{ matrix.language.name }}
# uses: 0xjord4n/[email protected]
# id: aixion
# with:
# config: >
# {
# "provider": "openai",
# "provider_options": {
# "api_key": "${{ secrets.OPENAI_API_KEY }}"
# },
# "messages": [
# {
# "role": "system",
# "content": "You will be provided with a markdown file in English, and your task is to translate it into ${{ matrix.language.name }}."
# },
# {
# "role": "user",
# "content_path": "README.md"
# }
# ],
# "save_path": "README_${{ matrix.language.code }}.md",
# "model": "gpt-4o"
# }

# Upload each translated file as an artifact
- name: Upload translation
uses: actions/upload-artifact@v4
with:
name: readme-${{ matrix.language.code }}
path: README_${{ matrix.language.code }}.md
# # Upload each translated file as an artifact
# - name: Upload translation
# uses: meta-introspector/upload-artifact@v4
# with:
# name: readme-${{ matrix.language.code }}
# path: README_${{ matrix.language.code }}.md

commit:
needs: translation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
token: ${{ secrets.GH_TOKEN }}
# commit:
# needs: translation
# runs-on: ubuntu-latest
# steps:
# - uses: meta-introspector/checkout@v4
# with:
# ref: main
# token: ${{ secrets.GH_TOKEN }}

# Download all translation artifacts
- name: Download all translations
uses: actions/download-artifact@v4
with:
pattern: readme-*
merge-multiple: true
# # Download all translation artifacts
# - name: Download all translations
# uses: meta-introspector/download-artifact@v4
# with:
# pattern: readme-*
# merge-multiple: true

- name: Commit all translations
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: update all README translations"
branch: main
file_pattern: "README_*.md"
commit_author: "GitHub Action <[email protected]>"
# - name: Commit all translations
# uses: stefanzweifel/git-auto-commit-action@v5
# with:
# commit_message: "chore: update all README translations"
# branch: main
# file_pattern: "README_*.md"
# commit_author: "GitHub Action <[email protected]>"
6 changes: 3 additions & 3 deletions .github/workflows/jsdoc-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: meta-introspector/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
uses: meta-introspector/setup-node@v4
with:
node-version: "20"

- name: Install pnpm
uses: pnpm/action-setup@v2
uses: meta-introspector/action-setup@v2
with:
version: 8
run_install: false
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: meta-introspector/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-node@v4
- uses: meta-introspector/setup-node@v4
with:
node-version: 22

Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
fi
- name: Create GitHub Release
uses: actions/create-release@v1
uses: meta-introspector/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
PNPM_HOME: /home/runner/setup-pnpm/node_modules/.bin
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: meta-introspector/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-node@v4
- uses: meta-introspector/setup-node@v4
with:
node-version: 23.3.0

- uses: pnpm/action-setup@v3
- uses: meta-introspector/action-setup@v3
with:
version: 9.15.0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
DAYS_BEFORE_CLOSE: 7 # Define the days-before-close value

steps:
- uses: actions/stale@v5
- uses: meta-introspector/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: |
Expand Down

0 comments on commit 999990f

Please sign in to comment.