Skip to content

Commit

Permalink
Fix current revision fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
foosel committed Jul 24, 2023
1 parent d33d867 commit 45d8eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_revision.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
set -e
revision="${{ github.event.inputs.deb_revision }}"
if [[ -z "$revision" ]]; then
current=$(curl -s https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/tags/${GIT_VERSION} | jq -r ".assets[].name" | grep "camera-streamer-raspi.*_armhf.deb" | cut -d "_" -f 2 | cut -d "-" -f 2)
current=$(curl -s https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/tags/${GIT_VERSION} | jq -r ".assets[].name" | grep "camera-streamer-raspi.*_armhf.deb" | cut -d "_" -f 2 | cut -d "-" -f 2 | sort -nr | head -n1)
echo "Found current revision $current"
revision=$(expr $current + 1)
fi
Expand Down

0 comments on commit 45d8eb6

Please sign in to comment.