Skip to content

Commit

Permalink
wip: adds README
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman committed Aug 30, 2024
1 parent ad14498 commit 4aa161f
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 3 deletions.
44 changes: 43 additions & 1 deletion forge/actions/discovery/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,45 @@
# Discover Action

TODO
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 | `"."` |
2 changes: 1 addition & 1 deletion forge/actions/discovery/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion forge/actions/discovery/dist/index.js.map

Large diffs are not rendered by default.

0 comments on commit 4aa161f

Please sign in to comment.