Skip to content

Commit

Permalink
Merge pull request #15 from aquaproj/feat/support-prune
Browse files Browse the repository at this point in the history
feat: add an input prune
  • Loading branch information
suzuki-shunsuke authored Dec 30, 2022
2 parents e5890cb + 3a79af5 commit 0a4a9f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ $ aqua g -i int128/ghcp
## Inputs

- `working_directory`
- `prune`

## Required Environment Variables

Expand Down
9 changes: 9 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,21 @@ inputs:
working_directory:
required: false
default: ""
prune:
required: false
default: false
runs:
using: composite
steps:
- shell: bash
working-directory: ${{inputs.working_directory}}
run: aqua update-checksum -deep
if: "! fromJSON(inputs.prune)"
- shell: bash
working-directory: ${{inputs.working_directory}}
run: aqua update-checksum -deep -prune
if: fromJSON(inputs.prune)

- shell: bash
id: find
working-directory: ${{inputs.working_directory}}
Expand Down

0 comments on commit 0a4a9f6

Please sign in to comment.