Skip to content

Commit 5bf6ab7

Browse files
authored
fix(ci): use $GRAPHENEOS_VERSION set by previous step (#168)
1 parent 8fb3ca1 commit 5bf6ab7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,18 +95,18 @@ jobs:
9595
build_flavor=$([[ ${{ github.event.inputs.root == 'true' }} == 'true' ]] && echo 'magisk' || echo 'rootless')
9696
9797
# Check if the tag exists
98-
if git show-ref --tags ${VERSION[GRAPHENEOS]} --quiet; then
99-
echo -e "Tag with GrapheneOS version ${VERSION[GRAPHENEOS]} already exists. Looking for assets..."
98+
if git show-ref --tags $GRAPHENEOS_VERSION --quiet; then
99+
echo -e "Tag with GrapheneOS version $GRAPHENEOS_VERSION already exists. Looking for assets..."
100100
# Fetch the release information for the tag
101-
repo_url="https://api.github.com/repos/${{ github.repository }}/releases/tags/${VERSION[GRAPHENEOS]}"
101+
repo_url="https://api.github.com/repos/${{ github.repository }}/releases/tags/$GRAPHENEOS_VERSION"
102102
release_info=$(curl -sL "$repo_url")
103103
104104
# Define required assets
105105
required_assets=(
106-
"${{ env.DEVICE_NAME }}-${VERSION[GRAPHENEOS]}-magisk-*.zip"
107-
"${{ env.DEVICE_NAME }}-${VERSION[GRAPHENEOS]}-magisk-*.zip.csig"
108-
"${{ env.DEVICE_NAME }}-${VERSION[GRAPHENEOS]}-rootless-*.zip"
109-
"${{ env.DEVICE_NAME }}-${VERSION[GRAPHENEOS]}-rootless-*.zip.csig"
106+
"${{ env.DEVICE_NAME }}-$GRAPHENEOS_VERSION-magisk-*.zip"
107+
"${{ env.DEVICE_NAME }}-$GRAPHENEOS_VERSION-magisk-*.zip.csig"
108+
"${{ env.DEVICE_NAME }}-$GRAPHENEOS_VERSION-rootless-*.zip"
109+
"${{ env.DEVICE_NAME }}-$GRAPHENEOS_VERSION-rootless-*.zip.csig"
110110
)
111111
112112
existing_assets=$(echo "$release_info" | jq -r '.assets[].name')
@@ -152,7 +152,7 @@ jobs:
152152
fi
153153
fi
154154
else
155-
echo -e "Tag with GrapheneOS version ${VERSION[GRAPHENEOS]} does not exist. Creating one..."
155+
echo -e "Tag with GrapheneOS version $GRAPHENEOS_VERSION does not exist. Creating one..."
156156
fi
157157
158158
- name: Setup Git

0 commit comments

Comments
 (0)