File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed
Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -41,15 +41,23 @@ jobs:
4141 xcode-version : latest-stable
4242
4343 - name : Install asc
44+ env :
45+ GH_TOKEN : ${{ github.token }}
4446 run : |
45- HOMEBREW_NO_AUTO_UPDATE=1 brew install asc
46- if ! asc builds next-build-number --help >/dev/null 2>&1; then
47- GOBIN="$RUNNER_TEMP/bin"
48- mkdir -p "$GOBIN"
49- export PATH="$GOBIN:$PATH"
50- echo "$GOBIN" >> "$GITHUB_PATH"
51- GOBIN="$GOBIN" go install github.com/rudrankriyam/App-Store-Connect-CLI@latest
52- fi
47+ ASC_VERSION="$(gh release view \
48+ --repo rudrankriyam/App-Store-Connect-CLI \
49+ --json tagName \
50+ --jq .tagName)"
51+ ASC_ASSET="asc_${ASC_VERSION}_macOS_arm64"
52+
53+ gh release download "$ASC_VERSION" \
54+ --repo rudrankriyam/App-Store-Connect-CLI \
55+ --pattern "$ASC_ASSET" \
56+ --dir "$RUNNER_TEMP"
57+
58+ install -m 0755 "$RUNNER_TEMP/$ASC_ASSET" "$RUNNER_TEMP/asc"
59+ export PATH="$RUNNER_TEMP:$PATH"
60+ echo "$RUNNER_TEMP" >> "$GITHUB_PATH"
5361 asc --version
5462 asc builds next-build-number --help >/dev/null
5563
You can’t perform that action at this time.
0 commit comments