File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 23
23
go-version : ' 1.x'
24
24
- name : Install Dependencies
25
25
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'
26
30
- name : Test
27
31
run : make test
28
32
env :
Original file line number Diff line number Diff line change 74
74
75
75
.PHONY : upgrade-pack
76
76
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
79
81
80
82
.PHONY : install-pack-cli
81
83
install-pack-cli : export PACK_BIN:=$(shell which pack)
You can’t perform that action at this time.
0 commit comments