forked from bblanchon/pdfium-binaries
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.15 KB
/
trigger.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
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' }}"
}