-
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
4 changed files
with
45 additions
and
1 deletion.
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 @@ | ||
version: "1.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,19 @@ | ||
name: Dump Blueprint | ||
description: Dumps blueprint files to JSON | ||
inputs: | ||
path: | ||
description: Path to the root folder | ||
default: "." | ||
outputs: | ||
json: | ||
description: The blueprint in JSON form | ||
value: ${{ steps.run.outputs.json }} | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Run | ||
id: run | ||
shell: bash | ||
run: | | ||
OUTPUT=$(forge blueprint dump ${{ inputs.path }} 2> >(tee /dev/stderr)) | ||
echo "json=$(echo $OUTPUT | jq -c)" >> GITHUB_OUTPUT |
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 Forge CLI | ||
description: Run the Forge CLI | ||
inputs: | ||
command: | ||
description: The command to run | ||
required: true | ||
args: | ||
description: The arguments to pass to the command | ||
outputs: | ||
result: | ||
description: The result of the command | ||
value: "" | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Run | ||
shell: bash | ||
run: | | ||
OUTPUT=$(forge ${{inputs.command}} ${{inputs.args}} | tee ) |