Skip to content

Commit ace455c

Browse files
authored
Merge branch 'main' into patch-1
2 parents 5b02422 + 1e11511 commit ace455c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ jobs:
2323
go-version: '1.x'
2424
- name: Install Dependencies
2525
run: sudo apt-get install make curl jq
26+
- name: Install pack
27+
uses: buildpacks/github-actions/[email protected]
28+
with:
29+
pack-version: '0.28.0'
2630
- name: Test
2731
run: make test
2832
env:

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,10 @@ endif
7474

7575
.PHONY: upgrade-pack
7676
upgrade-pack: pack-version
77-
@echo "> Upgrading pack library version $(PACK_VERSION)"
78-
cd tools; go get github.com/buildpacks/pack@v$(PACK_VERSION)
77+
@if [ ! $(`which pack` && `pack --version | cut -d '+' -f 1` != "$(PACK_VERSION)") ]; then \
78+
echo "> Upgrading pack library version $(PACK_VERSION)"; \
79+
cd tools; go get github.com/buildpacks/pack@v$(PACK_VERSION); \
80+
fi
7981

8082
.PHONY: install-pack-cli
8183
install-pack-cli: export PACK_BIN:=$(shell which pack)

0 commit comments

Comments
 (0)