-
Notifications
You must be signed in to change notification settings - Fork 25
46 lines (38 loc) · 1.15 KB
/
upgrade.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
36
37
38
39
40
41
42
43
44
45
46
name: Upgrade Casks
on:
schedule:
- cron: '0 */3 * * *'
workflow_dispatch:
jobs:
upgrade:
name: Upgrade Casks
runs-on: ubuntu-latest
if: github.repository == 'mdogan/homebrew-zulu'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- uses: gradle/gradle-build-action@v2
- name: Run Updater
run: |
cd updater
./gradlew run --args='..'
- name: Generate Github Token
uses: tibdex/github-app-token@v2
id: generate_token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ steps.generate_token.outputs.token }}
commit-message: Upgrade JDK Casks to the latest versions
title: Upgrade JDK Casks
body: |
Upgraded JDK Casks to the latest versions.
_Auto-generated by `Upgrade Casks` Github workflow._
branch: upgrade-casks
delete-branch: true