Skip to content

Commit

Permalink
fix: fix Latest Dart Version action (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfccp authored Nov 22, 2024
1 parent ec53eb0 commit 687955b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/check-dart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Install dependencies
run: sudo apt update && sudo apt install curl jq

- name: Check latest version ${{ env.major }} docker image
run: |
token=$(curl -s -H "Content-Type: application/json" \
Expand All @@ -29,13 +26,13 @@ jobs:
curl -s -H "Content-Type: application/json" \
-H "Authorization: Bearer $token" \
"https://index.docker.io/v2/library/dart/manifests/$1" | \
jq -r '.fsLayers[0].blobSum'
jq -r '.manifests[0].annotations["org.opencontainers.image.version"]'
}
digest_stable=$(digest stable)
digest_current=$(digest $major.$latest_minor)
if test "$digest_stable" = null -o "$digest_current" = null
then
echo "Could not get the stable image digest ($digest_stable) or the currrent ($major.$latest_minor)" \
echo "Could not get the stable image digest ($digest_stable) or the current ($major.$latest_minor)" \
"image digest ($digest_current)." >&2
exit 1
fi
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# See https://www.dartlang.org/guides/libraries/private-files

.DS_Store

# Files and directories created by pub
.dart_tool/
.packages
Expand Down

0 comments on commit 687955b

Please sign in to comment.