mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 13:59:48 +00:00
Fixed signature handling through a temporary file
This commit is contained in:
parent
754e146440
commit
08b00a23cf
9
.github/workflows/build-and-release.yml
vendored
9
.github/workflows/build-and-release.yml
vendored
@ -221,6 +221,8 @@ jobs:
|
|||||||
build_linux_arm64:
|
build_linux_arm64:
|
||||||
name: Build app (linux-arm64)
|
name: Build app (linux-arm64)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: false # disable this job for now
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -418,21 +420,22 @@ jobs:
|
|||||||
# Convert bash array to JSON array:
|
# Convert bash array to JSON array:
|
||||||
signatures_json=$(printf '%s\n' "${signatures[@]}" | jq -R . | jq -s .)
|
signatures_json=$(printf '%s\n' "${signatures[@]}" | jq -R . | jq -s .)
|
||||||
|
|
||||||
echo "signatures=${signatures_json}" >> $GITHUB_ENV
|
# Write the JSON array to a temporary file
|
||||||
|
echo $signatures_json > $GITHUB_WORKSPACE/.updates/signatures.json
|
||||||
|
|
||||||
- name: Create latest.json
|
- name: Create latest.json
|
||||||
env:
|
env:
|
||||||
FORMATTED_VERSION: ${{ needs.read_metadata.outputs.formatted_version }}
|
FORMATTED_VERSION: ${{ needs.read_metadata.outputs.formatted_version }}
|
||||||
FORMATTED_BUILD_TIME: ${{ needs.read_metadata.outputs.formatted_build_time }}
|
FORMATTED_BUILD_TIME: ${{ needs.read_metadata.outputs.formatted_build_time }}
|
||||||
SIGNATURES: ${{ env.signatures }}
|
|
||||||
|
|
||||||
run: |
|
run: |
|
||||||
rm -f $GITHUB_WORKSPACE/.updates/latest.json
|
rm -f $GITHUB_WORKSPACE/.updates/latest.json
|
||||||
|
signatures=$(cat $GITHUB_WORKSPACE/.updates/signatures.json)
|
||||||
cat <<EOF > $GITHUB_WORKSPACE/.updates/latest.json
|
cat <<EOF > $GITHUB_WORKSPACE/.updates/latest.json
|
||||||
{
|
{
|
||||||
"version": "$FORMATTED_VERSION",
|
"version": "$FORMATTED_VERSION",
|
||||||
"pub_date": "$FORMATTED_BUILD_TIME",
|
"pub_date": "$FORMATTED_BUILD_TIME",
|
||||||
"signatures": $SIGNATURES
|
"signatures": $signatures
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user