-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (51 loc) · 1.91 KB
/
Copy pathupdate-formula.yml
File metadata and controls
59 lines (51 loc) · 1.91 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Update Formula
on:
repository_dispatch:
types: [update-formula]
workflow_dispatch:
inputs:
version:
description: 'Version to update to (e.g., eeng-5.2.7)'
required: true
type: string
jobs:
update-formula:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: Generate formula
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
VERSION="${{ github.event.client_payload.version || inputs.version }}"
echo "Updating formula to version: $VERSION"
bundle exec ruby generate-formula.rb --version "$VERSION"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
add-paths: |
Formula/eengine.rb
formula-metadata.json
commit-message: "chore: update eengine to ${{ github.event.client_payload.version || inputs.version }}"
title: "Update eengine formula"
body: |
Automated formula update to version **${{ github.event.client_payload.version || inputs.version }}**
${{ github.event.client_payload.release_url && format('Release: {0}', github.event.client_payload.release_url) || '' }}
This PR updates the Homebrew formula with:
- Version: `${{ github.event.client_payload.version || inputs.version }}`
- Updated download URLs for all platforms
- Fresh SHA256 checksums
---
*This PR will be automatically updated with newer versions. Only the latest version matters.*
branch: "update-formula"
delete-branch: false
labels: |
automated
formula-update