-
Notifications
You must be signed in to change notification settings - Fork 14
58 lines (49 loc) · 1.64 KB
/
auto-update-versions.yml
File metadata and controls
58 lines (49 loc) · 1.64 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
name: Auto update versions.yml
on:
schedule:
- cron: '25 9 * * 3'
workflow_dispatch: {}
jobs:
update-versions:
name: "auto update versions.yml"
runs-on: ubuntu-20.04
env:
YJ_VERSION: "v5.0.0"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache tools
uses: actions/cache@v2
with:
key: ${{ env.YJ_VERSION }}
path: ~/yj
- name: Download yj
id: yj
run: |
if [[ ! -d ~/yj ]] ; then mkdir ~/yj ; else echo "yj directory existing"; fi
if [[ ! -x ~/yj/yj ]] ; then
echo "downloading yj"
curl -sL "https://github.com/sclevine/yj/releases/download/${YJ_VERSION}/yj-linux" -o ~/yj/yj
chmod +x ~/yj/yj
fi
~/yj/yj -v
echo "::set-output name=path::${HOME}/yj/yj"
- name: Get Gradle version
env:
TOKEN: ${{ secrets.GH_TOKEN }}
YJ: ${{ steps.yj.outputs.path }}
run: ./script/generate-versions.sh
- name: Get GraalVM version
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: script/auto-detect-graal-version.sh
- name: Set Date
id: date
run: echo "::set-output name=value::$(date '+%Y-%m-%d')"
- name: Create PR
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GH_TOKEN }}
commit-message: "Update gradle/graalvm versions to the latest in ${{ steps.date.outputs.value }}."
branch: "versions/update-${{ steps.date.outputs.value }}"
title: "Update Gradle versions for versions test(${{ steps.date.outputs.value }})"