Skip to content

Commit

Permalink
Fix hello-moon and windows
Browse files Browse the repository at this point in the history
Signed-off-by: Natalie Arellano <[email protected]>
  • Loading branch information
natalieparellano committed Sep 20, 2023
1 parent a49a8c8 commit f6fd08b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
with:
github-token: ${{secrets.GITHUB_TOKEN}}
result-encoding: string
# FIXME: Revert back to 'getLatestRelease' when pack v0.30.0 is released
# FIXME: Revert back to 'getLatestRelease' when pack v0.31.0 is released
script: |
return github.rest.repos.getReleaseByTag({
owner: "buildpacks",
Expand Down Expand Up @@ -68,13 +68,15 @@ jobs:
with:
github-token: ${{secrets.GITHUB_TOKEN}}
result-encoding: string
# FIXME: Revert back to 'getLatestRelease' when pack v0.31.0 is released
script: |
return github.rest.repos.getLatestRelease({
return github.rest.repos.getReleaseByTag({
owner: "buildpacks",
repo: "pack"
repo: "pack",
tag: "v0.31.0-rc1"
}).then(result => {
return result.data.assets
.filter(a => a.name.includes("windows"))
.filter(a => a.name.includes("-windows"))
.map(a => a.browser_download_url)[0];
})
- name: Install pack
Expand Down
1 change: 1 addition & 0 deletions buildpacks/hello-moon/buildpack.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ id = "samples/hello-moon"
version = "0.0.1"
name = "Hello Moon Buildpack"
homepage = "https://github.com/buildpacks/samples/tree/main/buildpacks/hello-moon"
sbom-formats = ["application/vnd.cyclonedx+json"]

# Targets the buildpack will work with
[[targets]]
Expand Down

0 comments on commit f6fd08b

Please sign in to comment.