-
Notifications
You must be signed in to change notification settings - Fork 1
66 lines (57 loc) · 1.95 KB
/
update.yml
File metadata and controls
66 lines (57 loc) · 1.95 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
60
61
62
63
64
65
66
name: "Update Data"
on:
schedule:
- cron: '0 22 * * *'
workflow_dispatch:
inputs:
vendors:
description: 'Vendors to update (e.g. temurin zulu). No value means all vendors.'
default: ''
permissions:
contents: write
pull-requests: write
env:
CARGO_TERM_COLOR: always
RAYON_NUM_THREADS: ${{ vars.RAYON_NUM_THREADS }}
ROAST_DATABASE_URL: ${{ secrets.ROAST_DATABASE_URL }}
RUST_BACKTRACE: 1
RUST_LOG: roast=INFO
GITHUB_TOKEN: ${{ secrets.GH_PAT || secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GH_PAT || secrets.GITHUB_TOKEN}}
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.head_ref }}
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2
with:
shared-key: "roast"
- uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1
with:
experimental: true
- name: Update Data
run: |
cargo run -- fetch ${{ github.event.inputs.vendors }}
- name: Export Data
run: |
cargo run -- export release-type \
--pretty \
-o 'alpine-linux,linux,macosx,windows' \
-a 'aarch64,arm32,i686,x86_64' \
-e 'architecture,checksum_url,filename,os,release_type,size' \
-f 'file_type=tar.gz,tar.xz,zip&image_type=jre,jdk&features=!certified,!debug,!fastdebug,!freetype'
- name: Create Pull Request
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update data
title: Update data
base: main
labels: automated-pr
assignees: ${{ vars.CREATE_PR_ASSIGNEES || 'roele' }}
branch: issues/update-data
delete-branch: true