Skip to content

Commit

Permalink
Merge pull request Layr-Labs#147 from Layr-Labs/jb/fix-cli-release
Browse files Browse the repository at this point in the history
Fix cli-release Github Action
  • Loading branch information
jbrower95 authored Aug 30, 2024
2 parents cf63185 + 17916a9 commit 3aa449f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cli_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run GoReleaser (branch)
uses: goreleaser/goreleaser-action@v6
if: ${{ github.ref != 'refs/heads/main' }}
if: ${{ github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/') }}
with:
distribution: goreleaser
version: "~> v2"
Expand Down
6 changes: 3 additions & 3 deletions cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ var specificValidator uint64 = math.MaxUint64
var estimateGas = false
var slashedValidatorIndex uint64

const DEFAULT_HEALTHCHECK_TOLERANCE = float64(5.0)
const DefaultHealthcheckTolerance = float64(5.0)

func main() {
var batchSize uint64
var forceCheckpoint = false
var disableColor = false
var verbose = false
var noPrompt = false
var tolerance = DEFAULT_HEALTHCHECK_TOLERANCE
var tolerance = DefaultHealthcheckTolerance

app := &cli.App{
Name: "Eigenlayer Proofs CLi",
Expand All @@ -43,7 +43,7 @@ func main() {
BeaconNodeFlag,
&cli.Float64Flag{
Name: "tolerance",
Value: DEFAULT_HEALTHCHECK_TOLERANCE, // default: 5
Value: DefaultHealthcheckTolerance, // default: 5
Usage: "The percentage balance deviation to tolerate when deciding whether an eigenpod should be corrected. Default is 5% (e.g --tolerance 5).",
Destination: &tolerance,
},
Expand Down

0 comments on commit 3aa449f

Please sign in to comment.