Skip to content

Update Data

Update Data #343

Workflow file for this run

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@779680da715d629ac1d338a641029a2f4372abb5 # v2
with:
shared-key: "roast"
- uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v2
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 '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@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0
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