Skip to content

Weekly schedule

Weekly schedule #190

Workflow file for this run

name: Weekly schedule
on:
schedule:
- cron: '0 4 * * 1'
workflow_dispatch:
jobs:
trigger:
name: Trigger build
runs-on: ubuntu-latest
steps:
- name: Get Chrome version
id: chromium
timeout-minutes: 5
shell: bash
run: |
VERSION=$(git ls-remote --sort version:refname --tags https://chromium.googlesource.com/chromium/src '*.*.*.0' | grep -oE '[0-9]+\.[0-9]+\.[0-9]+.0' | tail -n1)
BUILD=$(echo "$VERSION" | cut -d. -f3)
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "branch=chromium/$BUILD" >> $GITHUB_OUTPUT
- name: Get date
id: date
run: |
echo "day=$(date +%-d)" >> $GITHUB_OUTPUT
- name: Trigger build
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Build all
inputs: |
{
"branch": "${{ steps.chromium.outputs.branch }}",
"version": "${{ steps.chromium.outputs.version }}",
"is_debug": "false",
"enable_v8": "true",
"release": "true",
"nuget": "true",
"anaconda": "${{ steps.date.outputs.day <= 7 && 'true' || 'false' }}"
}