Skip to content

Commit

Permalink
Update update-latest-json-portable.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
typeling1578 committed Dec 30, 2024
1 parent f915adf commit 17fbf41
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/update-latest-json-portable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,24 +58,24 @@ jobs:
- name: Set win-x86-64 version
run: |
cd ./browser-portable
jq '."win-x86-64".version|="${{ github.event.inputs.display-version }}"' ./latest.json > ./latest.json
jq '."win-x86-64".url|="${{ env.WIN_X86_64_DOWNLOAD_URL }}"' ./latest.json > ./latest.json
jq '."win-x86-64".sha256|="${{ env.WIN_X86_64_SHA256 }}"' ./latest.json > ./latest.json
cat ./latest.json | jq '."win-x86-64".version|="${{ github.event.inputs.display-version }}"' > ./latest.json
cat ./latest.json | jq '."win-x86-64".url|="${{ env.WIN_X86_64_DOWNLOAD_URL }}"' > ./latest.json
cat ./latest.json | jq '."win-x86-64".sha256|="${{ env.WIN_X86_64_SHA256 }}"' > ./latest.json
- name: Set linux-x86-64 version
run: |
cd ./browser-portable
jq '."linux-x86-64".version|="${{ github.event.inputs.display-version }}"' ./latest.json > ./latest.json
jq '."linux-x86-64".url|="${{ env.LINUX_X86_64_DOWNLOAD_URL }}"' ./latest.json > ./latest.json
jq '."linux-x86-64".sha256|="${{ env.LINUX_X86_64_SHA256 }}"' ./latest.json > ./latest.json
cat ./latest.json | jq '."linux-x86-64".version|="${{ github.event.inputs.display-version }}"' > ./latest.json
cat ./latest.json | jq '."linux-x86-64".url|="${{ env.LINUX_X86_64_DOWNLOAD_URL }}"' > ./latest.json
cat ./latest.json | jq '."linux-x86-64".sha256|="${{ env.LINUX_X86_64_SHA256 }}"' > ./latest.json
- name: Set linux-aarch64 version
run: |
cd ./browser-portable
# Why "arm"?, see: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/PlatformArch
jq '."linux-arm".version|="${{ github.event.inputs.display-version }}"' ./latest.json > ./latest.json
jq '."linux-arm".url|="${{ env.LINUX_AARCH64_DOWNLOAD_URL }}"' ./latest.json > ./latest.json
jq '."linux-arm".sha256|="${{ env.LINUX_AARCH64_SHA256 }}"' ./latest.json > ./latest.json
cat ./latest.json | jq '."linux-arm".version|="${{ github.event.inputs.display-version }}"' > ./latest.json
cat ./latest.json | jq '."linux-arm".url|="${{ env.LINUX_AARCH64_DOWNLOAD_URL }}"' > ./latest.json
cat ./latest.json | jq '."linux-arm".sha256|="${{ env.LINUX_AARCH64_SHA256 }}"' > ./latest.json
- name: Commit
run: |
Expand Down

0 comments on commit 17fbf41

Please sign in to comment.