You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're seeing intermittent errors, without a helpful error message, around the step where it retrieves the browser download url.
I have a suspicion that any error message will be getting masked when the response from curl -Ls https://api.github.com/repos/codacy/git-version/releases/latest is being piped to the jq statement.
Furthermore, the url in the else statement is returning a 404 - but that is potentially being hidden when the output is being directed to > /usr/local/bin/git-version
Run codacy/git-version@80c816f11db8dea5e3a81025f598193015b51832
with:
release-branch: master
minor-identifier: minor:
major-identifier: major:
prefix: v
tool-version: latest
dev-branch: dev
log-paths: ./
Run set -eo pipefail
set -eo pipefail
if [ "latest" = "latest" ]; then
download_url="$(curl -Ls https://api.github.com/repos/codacy/git-version/releases/latest | jq -r .assets[0].browser_download_url)"
else
download_url="https://github.com/codacy/git-version/releases/download/latest/git-version"
fi
curl -Ls "$download_url" > /usr/local/bin/git-version
chmod +x /usr/local/bin/git-version
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
Error: Process completed with exit code [6](https://github.com/xxxxxxx#step:4:6).
Is anyone else seeing this same behaviour?
Thanks
The text was updated successfully, but these errors were encountered:
We've experienced the same issue today in one of our builds.
As a work-around, I set the tool version parameter to a fixed value; tool-version: 2.8.0, to make sure the execution flow always goes via the else path of the code snippet mentioned in the description, and so far it seems to work for us.
Hi
We're seeing intermittent errors, without a helpful error message, around the step where it retrieves the browser download url.
I have a suspicion that any error message will be getting masked when the response from
curl -Ls https://api.github.com/repos/codacy/git-version/releases/latest
is being piped to the jq statement.Furthermore, the url in the else statement is returning a 404 - but that is potentially being hidden when the output is being directed to
> /usr/local/bin/git-version
Is anyone else seeing this same behaviour?
Thanks
The text was updated successfully, but these errors were encountered: