Skip to content

Commit af5f939

Browse files
committed
feat: next version of @replexica's GHA
1 parent bb6b8e3 commit af5f939

File tree

15 files changed

+895
-204
lines changed

15 files changed

+895
-204
lines changed

action.yml

Lines changed: 21 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,33 @@
11
name: Replexica
2-
description: Accurate AI localization for web & mobile apps.
2+
description: Automated AI localization for dev teams.
33
author: Replexica
44

5-
# Define your inputs here.
6-
inputs:
7-
api-key:
8-
description: Replexica Platform API Key
9-
required: true
10-
version:
11-
description: Version of the Replexica CLI
12-
required: false
13-
default: 'latest'
14-
commit-message:
15-
description: 'Commit message for the changes'
16-
required: false
17-
default: 'feat: update translations'
18-
pull-request:
19-
description: 'Create a pull request with the changes'
20-
required: false
21-
default: 'false'
22-
pull-request-title:
23-
description: 'Title of the pull request'
24-
required: false
25-
default: 'feat: update translations'
26-
pull-request-assignees:
27-
description: List of PR assignees (comma separated)
28-
required: false
29-
pull-request-labels:
30-
description: List of PR labels (comma separated)
31-
required: false
5+
branding:
6+
icon: 'aperture'
7+
color: 'black'
328

339
runs:
3410
using: 'docker'
3511
image: 'action/Dockerfile'
3612
env:
3713
REPLEXICA_API_KEY: ${{ inputs.api-key }}
38-
REPLEXICA_VERSION: ${{ inputs.version }}
39-
REPLEXICA_COMMIT_MESSAGE: ${{ inputs.commit-message }}
4014
REPLEXICA_PULL_REQUEST: ${{ inputs.pull-request }}
15+
REPLEXICA_COMMIT_MESSAGE: ${{ inputs.commit-message }}
4116
REPLEXICA_PULL_REQUEST_TITLE: ${{ inputs.pull-request-title }}
42-
REPLEXICA_PULL_REQUEST_ASSIGNEES: ${{ inputs.pull-request-assignees }}
43-
REPLEXICA_PULL_REQUEST_LABELS: ${{ inputs.pull-request-labels }}
4417

45-
branding:
46-
icon: './content/logo.png'
47-
color: 'black'
18+
inputs:
19+
api-key:
20+
description: 'Replexica Platform API Key'
21+
required: true
22+
pull-request:
23+
description: 'Create a pull request with the changes'
24+
default: false
25+
required: false
26+
commit-message:
27+
description: 'Commit message'
28+
default: 'feat: update translations via @replexica'
29+
required: false
30+
pull-request-title:
31+
description: 'Pull request title'
32+
default: 'feat: update translations via @replexica'
33+
required: false

action/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/

action/Dockerfile

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
1-
# Container image that runs your code
2-
FROM node:20-alpine
1+
FROM node:20.12.2-alpine
32

4-
# Install git and github-cli
5-
RUN apk add --no-cache git github-cli
3+
# Install git
4+
RUN apk add --no-cache git
65

7-
# Copies your code file from your action repository to the filesystem path `/` of the container
8-
COPY entrypoint.sh /entrypoint.sh
9-
COPY pr.md /pr.md
6+
# Set working directory
7+
WORKDIR /app
108

11-
# Make entrypoint.sh executable
12-
RUN chmod +x /entrypoint.sh
9+
# Copy necessary files
10+
COPY package*.json tsconfig.json /app
1311

14-
# Code file to execute when the docker container starts up (`entrypoint.sh`)
15-
ENTRYPOINT ["/entrypoint.sh"]
12+
# Copy src directory
13+
COPY src /app/src
14+
15+
# Install pnpm and dependencies
16+
RUN npm install -g pnpm && pnpm install
17+
18+
# Build the TypeScript application
19+
RUN pnpm build
20+
21+
# Run the Node.js / TypeScript application
22+
ENTRYPOINT ["node", "/app/build/index.js"]

action/entrypoint.sh

Lines changed: 0 additions & 147 deletions
This file was deleted.

action/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"type": "module",
3+
"scripts": {
4+
"build": "tsc"
5+
},
6+
"dependencies": {
7+
"octokit": "^4.0.2",
8+
"ora": "^8.1.0",
9+
"zod": "^3.23.8"
10+
},
11+
"devDependencies": {
12+
"@types/node": "^22.7.4",
13+
"typescript": "^5.6.2"
14+
}
15+
}

0 commit comments

Comments
 (0)