Skip to content

Commit 4aa161f

Browse files
committed
wip: adds README
1 parent ad14498 commit 4aa161f

File tree

3 files changed

+45
-3
lines changed

3 files changed

+45
-3
lines changed

forge/actions/discovery/README.md

+43-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,45 @@
11
# Discover Action
22

3-
TODO
3+
The discover action acts as a wrapper over the `forge scan` command from the Forge CLI.
4+
It provides inputs that map to their respective flags.
5+
The result from running the command is returned in the `result` output.
6+
By default, the `--enumerate` flag is passed as this is usually the desired output format in CI.
7+
8+
For more information on the `scan` command, refer to the Forge CLI documentation.
9+
10+
## Usage
11+
12+
```yaml
13+
name: Run Setup
14+
on:
15+
push:
16+
17+
permissions:
18+
contents: read
19+
id-token: write
20+
21+
jobs:
22+
setup:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Setup
26+
uses: input-output-hk/catalyst-forge/forge/actions/setup@master
27+
- name: Discover
28+
id: discovery
29+
uses: input-output-hk/catalyst-forge/forge/actions/discover@master
30+
with:
31+
filters: |
32+
^check.*
33+
^test.*
34+
- name: Show result
35+
run: echo "${{ steps.discovery.outputs.result }}
36+
```
37+
38+
## Inputs
39+
40+
| Name | Description | Required | Default |
41+
| --------- | --------------------------------------------- | -------- | --------- |
42+
| absolute | Output absolute paths | No | `"false"` |
43+
| enumerate | Enumerate results into Earthfile+Target pairs | No | `"true"` |
44+
| filters | A newline separated list of filters to apply | No | `""` |
45+
| path | The path to search from | No | `"."` |

forge/actions/discovery/dist/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

forge/actions/discovery/dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)