Skip to content

Commit

Permalink
Merge pull request #1622 from paketo-buildpacks/yourkit-fix
Browse files Browse the repository at this point in the history
Convert to the arch used by the API within the action
  • Loading branch information
dmikusa authored May 22, 2024
2 parents c020c57 + 6541075 commit 4d38a40
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions actions/yourkit-dependency/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@ func main() {
inputs := actions.NewInputs()

arch, ok := inputs["arch"]
if !ok || (arch != "arm64" && arch != "x64") {
panic(fmt.Errorf("arch must be specified [arm64, x64]"))
if !ok || (arch != "arm64" && arch != "amd64") {
panic(fmt.Errorf("arch must be specified [arm64, amd64]"))
}

if arch == "amd64" {
arch = "x64"
}

c := colly.NewCollector()
Expand Down

0 comments on commit 4d38a40

Please sign in to comment.