Skip to content

Commit fdf0ed6

Browse files
committed
chore(ci): auto discover git ref of librime artifacts
1 parent a30a6e9 commit fdf0ed6

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.github/workflows/commit-ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020

2121
- name: Configure build environment
2222
run: |
23+
brew install jq
2324
echo git_ref_name="$(git describe --always)" >> $GITHUB_ENV
2425
2526
- name: Build Squirrel

.github/workflows/release-ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
- name: Lint
2828
run: swiftlint
2929

30+
- name: Configure build environment
31+
run: brew install jq
32+
3033
- name: Build Squirrel
3134
run: ./action-build.sh archive
3235

action-install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -e
44

55
rime_version=latest
6-
rime_git_hash=24f0f7b
6+
rime_git_hash=`curl https://api.github.com/repos/rime/librime/releases/tags/latest | jq '.assets | .[] | select(.name | contains("macOS")) | .name' | jq -s '.[0]' -r | cut -d- -f2`
77
sparkle_version=2.6.2
88

99
rime_archive="rime-${rime_git_hash}-macOS-universal.tar.bz2"

0 commit comments

Comments
 (0)