-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
13,279 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
20.14.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Discover Action | ||
|
||
The discover action acts as a wrapper over the `forge scan` command from the Forge CLI. | ||
It provides inputs that map to their respective flags. | ||
The result from running the command is returned in the `result` output. | ||
By default, the `--enumerate` flag is passed as this is usually the desired output format in CI. | ||
|
||
For more information on the `scan` command, refer to the Forge CLI documentation. | ||
|
||
## Usage | ||
|
||
```yaml | ||
name: Run Setup | ||
on: | ||
push: | ||
|
||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
jobs: | ||
setup: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup | ||
uses: input-output-hk/catalyst-forge/forge/actions/setup@master | ||
- name: Discover | ||
id: discovery | ||
uses: input-output-hk/catalyst-forge/forge/actions/discover@master | ||
with: | ||
filters: | | ||
^check.* | ||
^test.* | ||
- name: Show result | ||
run: echo "${{ steps.discovery.outputs.result }} | ||
``` | ||
## Inputs | ||
| Name | Description | Required | Default | | ||
| --------- | --------------------------------------------- | -------- | --------- | | ||
| absolute | Output absolute paths | No | `"false"` | | ||
| enumerate | Enumerate results into Earthfile+Target pairs | No | `"true"` | | ||
| filters | A newline separated list of filters to apply | No | `""` | | ||
| path | The path to search from | No | `"."` | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Run | ||
description: Execute Earthfiles | ||
inputs: | ||
artifact: | ||
description: Enable artifact collection | ||
default: "false" | ||
local: | ||
description: Forces the target to run locally (ignores satellite). | ||
default: "false" | ||
path: | ||
description: The path to the Earthfile, including target (i.e. path/to/project+target) | ||
required: true | ||
outputs: | ||
result: | ||
description: The result of the run | ||
|
||
runs: | ||
using: node20 | ||
main: dist/index.js |
Oops, something went wrong.