-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (29 loc) · 1.01 KB
/
update.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
name: Update brew formula
on:
repository_dispatch:
types: [update]
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get Latest Release
id: latest_version
uses: abatilo/[email protected]
with:
owner: cloudwaste
repo: cloudwaste
- name: Update formula
env:
LATEST: ${{ steps.latest_version.outputs.latest_tag }}
run: |
version=`echo "$LATEST" | cut -c2-`
./update.sh cloudwaste $version
- name: Create PR
uses: peter-evans/create-pull-request@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'feat: Update cloudwaste formula to ${{ steps.latest_version.outputs.latest_tag }}'
title: 'feat: Update cloudwaste formula to ${{ steps.latest_version.outputs.latest_tag }}'
body: |
Autogenerated PR to update to latest release of cloudwaste: ${{ steps.latest_version.outputs.latest_tag }}