Skip to content

Commit 8fa45bf

Browse files
Merge V1 to main
* deployment API requests * fixes file writes * update fetch API paths * deployment keys * Patch transform.ts file support * Run on all paths * Refactor response data structure * Remove extensions and prefer the defaults * Adds formatter step * Actions resolver * Vitest setup * Working tests
1 parent 8385e92 commit 8fa45bf

14 files changed

Lines changed: 2289 additions & 228 deletions

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Hypermod Transformer Action
2-
Github Action for progressing remote transformation requests triggered from the Hypermod App.
32

3+
Github Action for progressing batch transformation requests triggered remotely from the Hypermod App.
44

5-
## Running locally
6-
https://blog.harshcasper.com/debugging-github-actions-workflows-effectively
5+
The action accepts a single argument `deploymentId` & `deploymentKey`, which it will use to access specific transform instructions from the Hypermod App.

action.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,11 @@
11
name: Hypermod
2-
description: A GitHub action to perform transformations triggered via the Hypermod App
2+
description: A GitHub action to perform batch transformations triggered via the Hypermod App
33
runs:
44
using: "node20"
55
main: "dist/index.js"
66
inputs:
7-
eventType:
8-
description: "Event type dispatched from the Hypermod app"
9-
type: choice
10-
required: true
11-
options:
12-
- transform
13-
- check
14-
transformIds:
15-
description: "Transform Ids to run (comma separated)"
16-
type: string
17-
required: true
18-
directories:
19-
description: "Directories Ids to run (comma separated)"
7+
deploymentId:
8+
description: "The ID of the deployment to run"
209
type: string
2110
required: true
2211
outputs:

dist/index.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)