-
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (25 loc) · 1.17 KB
/
unpack-airlift-pkg.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: unpack latest airlift pkg
on:
workflow_dispatch:
jobs:
update_formula:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Get latest release info
id: get_release
run: |
latest_release_tag=$(curl -sSL https://api.github.com/repos/TheAcharya/Airlift/releases/latest | jq -r '.tag_name | ltrimstr("v")')
latest_release_url=$(curl -sSL https://api.github.com/repos/TheAcharya/Airlift/releases/latest | jq -r '.assets[] | select(.name | endswith("macos_x64.zip")) | .browser_download_url')
echo "Latest release tag: $latest_release_tag"
echo "Latest release URL: $latest_release_url"
curl -L -o airlift.zip $latest_release_url
unzip airlift.zip -d extracted_files
cp -R ./extracted_files/dist/airlift "./Source/Marker Data/Marker Data/Resources"
git status
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git add Source
git commit -m "downloaded neo binary version $latest_release_tag"
git push