-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (26 loc) · 1.22 KB
/
update-formula.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
# .github/workflows/update-formula.yml
name: Update Homebrew Formula
on:
repository_dispatch:
types: [update-formula]
permissions:
contents: write
jobs:
update-formula:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Update formula
run: |
if [ -n "${{ github.event.client_payload.version }}" ]; then
python3 version_bump.py --version ${{ github.event.client_payload.version }} --hash-linux ${{ github.event.client_payload.hash_linux }} --hash-mac-intel ${{ github.event.client_payload.hash_mac_intel }} --hash-mac-arm ${{ github.event.client_payload.hash_mac_arm }} --hash-windows ${{ github.event.client_payload.hash_windows }} ${{ github.event.client_payload.nightly && '--nightly' || '' }}
fi
- name: Client update
run: |
if [ -n "${{ github.event.client_payload.py_client_version }}" ]; then
python3 version_bump.py --py-client-version ${{ github.event.client_payload.py_client_version }} ${{ github.event.client_payload.py_client_nightly && '--py-client-nightly' || '' }}
fi
- uses: EndBug/add-and-commit@v9
with:
default_author: github_actions