Skip to content

Commit 35426bd

Browse files
committed
feat(action): run on Github without Docker (#539)
1 parent 9e16e4d commit 35426bd

File tree

4 files changed

+434
-16
lines changed

4 files changed

+434
-16
lines changed

action.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,24 @@ branding:
77
color: "black"
88

99
runs:
10-
using: "docker"
11-
image: "action/Dockerfile"
12-
env:
13-
LINGODOTDEV_API_KEY: ${{ inputs.api-key }}
14-
LINGODOTDEV_PULL_REQUEST: ${{ inputs.pull-request }}
15-
LINGODOTDEV_COMMIT_MESSAGE: ${{ inputs.commit-message }}
16-
LINGODOTDEV_PULL_REQUEST_TITLE: ${{ inputs.pull-request-title }}
17-
LINGODOTDEV_WORKING_DIRECTORY: ${{ inputs.working-directory }}
18-
LINGODOTDEV_PROCESS_OWN_COMMITS: ${{ inputs.process-own-commits }}
10+
using: "composite"
11+
steps:
12+
- name: Install pnpm
13+
run: cd ${{ github.action_path }} && npm install -g pnpm && pnpm install
14+
shell: bash
15+
- name: Build
16+
run: cd ${{ github.action_path }}/action && pnpm build
17+
shell: bash
18+
- name: Run
19+
run: node ${{ github.action_path }}/action/build/index.js
20+
shell: bash
21+
env:
22+
LINGODOTDEV_API_KEY: ${{ inputs.api-key }}
23+
LINGODOTDEV_PULL_REQUEST: ${{ inputs.pull-request }}
24+
LINGODOTDEV_COMMIT_MESSAGE: ${{ inputs.commit-message }}
25+
LINGODOTDEV_PULL_REQUEST_TITLE: ${{ inputs.pull-request-title }}
26+
LINGODOTDEV_WORKING_DIRECTORY: ${{ inputs.working-directory }}
27+
LINGODOTDEV_PROCESS_OWN_COMMITS: ${{ inputs.process-own-commits }}
1928
inputs:
2029
api-key:
2130
description: "Lingo.dev Platform API Key"

action/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"name": "@lingo.dev/~action",
23
"type": "module",
34
"scripts": {
45
"build": "tsc"

0 commit comments

Comments
 (0)