File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -176,8 +176,10 @@ RUN DOCKER_BUILDX_VERSION=$(curl -s "https://api.github.com/repos/docker/buildx/
176
176
177
177
# See https://github.com/cli/cli/issues/6175#issuecomment-1235984381 for proof
178
178
# the apt repository is unreliable
179
- RUN curl -L https://github.com/cli/cli/releases/download/v2.14.7/gh_2.14.7_linux_amd64.deb -o gh.deb && \
180
- dpkg -i gh.deb
179
+ RUN GH_CLI_VERSION=$(curl -s "https://api.github.com/repos/cli/cli/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1 /' ) && \
180
+ curl -L https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.deb -o gh.deb && \
181
+ dpkg -i gh.deb && \
182
+ rm gh.deb
181
183
182
184
# Install Lazygit
183
185
# See https://github.com/jesseduffield/lazygit#ubuntu
You can’t perform that action at this time.
0 commit comments