Skip to content

Commit 7b85dc0

Browse files
authored
add notify homebrew update workflow (#8482)
1 parent 4af29b0 commit 7b85dc0

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Notify Homebrew Update
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
notify-homebrew:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Create update issue
12+
run: |
13+
curl -X POST \
14+
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
15+
-H "Accept: application/vnd.github.v3+json" \
16+
https://api.github.com/repos/aws/homebrew-tap/issues \
17+
-d '{
18+
"title": "Update eksctl to ${{ github.event.release.tag_name }}",
19+
"body": "New eksctl release ${{ github.event.release.tag_name }} is available.\n\nRelease URL: ${{ github.event.release.html_url }}",
20+
"labels": ["eksctl-update"]
21+
}'

0 commit comments

Comments
 (0)