Skip to content

Commit

Permalink
Update jitpack.yml: use short commit hash ${GITHUB_SHA:0:7}
Browse files Browse the repository at this point in the history
  • Loading branch information
nbauma109 authored May 12, 2024
1 parent a10e346 commit 1fc1bdb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/jitpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
steps:
- name: Download Jitpack Artifact
run: |
URL="https://jitpack.io/com/github/nbauma109/ecd/enhanced-class-decompiler/${GITHUB_REF##*/}-SNAPSHOT/enhanced-class-decompiler-${GITHUB_REF##*/}-SNAPSHOT.zip"
URL="https://jitpack.io/com/github/nbauma109/ecd/enhanced-class-decompiler/${GITHUB_SHA:0:7}/enhanced-class-decompiler-${GITHUB_SHA:0:7}.zip"
echo "Downloading URL $URL"
curl --location --fail --connect-timeout 300 --max-time 600 "$URL" --output "enhanced-class-decompiler-${GITHUB_REF##*/}-SNAPSHOT.zip"
curl --location --fail --connect-timeout 300 --max-time 600 "$URL" --output "enhanced-class-decompiler-${GITHUB_SHA:0:7}.zip"
- name: Check if the ZIP file is valid
run: |
if unzip -tq "enhanced-class-decompiler-${GITHUB_REF##*/}-SNAPSHOT.zip"; then
if unzip -tq "enhanced-class-decompiler-${GITHUB_SHA:0:7}.zip"; then
echo "The ZIP file is valid."
else
echo "The ZIP file is invalid."
Expand Down

0 comments on commit 1fc1bdb

Please sign in to comment.